Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3. main()
  4. {
  5. int n,i,gt;
  6. gt=1;
  7. printf("\n n=");scanf("%d",&n);
  8. for(i=2;i<=n;++i)
  9. {
  10. gt=gt*i
  11. }
  12. printf("\n n!=%d",gt);
  13. getch();
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement