Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- double i,n,fact=1;
- scanf("%lf",&n);
- i=n;
- while(i>=1)
- {
- fact=fact*i;
- i--;
- }
- printf("factorial %lf",fact);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement