00001 #include <stdio.h> 00002 00003 int factorial(int i) 00004 { 00005 if (i < 2) 00006 return i; 00007 else 00008 return i * factorial(i - 1); 00009 } 00010 00011 int Count; 00012 00013 for (Count = 1; Count <= 10; Count++) 00014 printf("%d\n", factorial(Count)); 00015 00016 void main() {}