Advertisement
semsem_elazazy

practical 11

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