#include <stdio.h>
int main() {
int loop;
int factorial=1;
int number = 5;
for(loop = 1; loop<= number; loop++) {
factorial = factorial * loop;
}
printf("Factorial of %d = %d /n", number, factorial);
return 0;
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/265363.html