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