A_farha

6

Feb 22nd, 2019
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.18 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int n,fact,i;
  5.     fact=1;
  6.     scanf("%d",&n);
  7.     for(i=1;i<=n;i++)
  8.     {
  9.         fact=fact*i;
  10.     }
  11.     printf("%d\n",fact);
  12.     return 0;
  13. }
Add Comment
Please, Sign In to add comment