Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- main()
- {
- int n,i,gt;
- gt=1;
- printf("\n n=");scanf("%d",&n);
- for(i=2;i<=n;++i)
- {
- gt=gt*i
- }
- printf("\n n!=%d",gt);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement