Smipple is shutting down Nov 30, 2017. Some features are currently disabled.
Profile image for Alex Jose Silva alexjosesilva
1153
Language
C
Tags
1153 C uri

1153

1 #include <stdio.h> 2 3 int main() { 4 5 int n=0,i,f=0; 6 scanf("%i",&n); 7 8 for(i=n-1; i>1; i--) 9 { 10 f = n * i; 11 n = f; 12 } 13 14 printf("%i",n); 15 16 return 0; 17 }

Comments