Guest User

Untitled

a guest
Feb 20th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<math.h>
  3.  
  4. double silnia(int n)
  5. {
  6. if(n==0)
  7. return 1;
  8. else
  9. return n*silnia(n-1);
  10. }
  11. int main()
  12. {
  13.  
  14.  
  15.  
  16. int n;
  17. double silnia;
  18.  
  19. scanf("%d",&n);
  20. silnia=pow((n/M_E),n)*sqrt(2*M_PI*n);
  21. printf("%f\n",silnia);
Add Comment
Please, Sign In to add comment