Advertisement
Guest User

Untitled

a guest
May 29th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. main()
  4. {
  5. float e;
  6. int x, n;
  7. printf("numero a ser calculado\n");
  8. scanf("%d", &n);
  9. for(x = 1; n > 1;n = n - 1)
  10. x= x*n;
  11. printf("\nFatorial calculado: %d",x);
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement