factorialc

factorialc - for(x(x-1 t=1 x>=1 x t*=x printf"The...

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>=1 x--) { t*=x } printf("The factorial is equal to %d\n", t) return 0 }...
View Full Document

This homework help was uploaded on 04/18/2008 for the course EME 5 taught by Professor Staff during the Fall '08 term at UC Davis.

Ask a homework question - tutors are online