factorialc - for (x*(x-1), t=1 x>=1 x--) { t*=x...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Sheet1 Page 1 //factorial.c #include<stdio.h> int main() { int x, t printf("Please input a number\n")
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: for (x*(x-1), t=1 x&gt;=1 x--) { t*=x } printf(&quot;The factorial is equal to %d\n&quot;, t) return 0 }...
View Full Document

Ask a homework question - tutors are online