Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- main()
- {
- float x,n;
- for(n=2;n<=10;n++)
- for(x = 1; n > 1;n = n - 1)
- x= x*n;
- printf("\nFatorial calculado: %f",x);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement