Citation de code source en C++n° 306
11 Juillet, 2016 à 01:30
// FUUU computer, it works well on my head!
#include <stdio.h>
int main()
{
int n, factorial, i;
scanf("%d", &n);
factorial = 1;
for(i = 2; i <= n; i++); // LOL
{
factorial = factorial * i;
}
printf("your factorial is: %d\n", factorial);
return 0;
}