Advertisement
Guest User

Untitled

a guest
May 29th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. #include<math.h>
  3. main()
  4. {
  5. float x,n;
  6. for(n=2;n<=10;n++)
  7. for(x = 1; n > 1;n = n - 1)
  8. x= x*n;
  9. printf("\nFatorial calculado: %f",x);
  10. return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement