Advertisement
STANAANDREY

T21b)

Dec 10th, 2018
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main ()
  6. {
  7.  
  8. long n,i=1,E=1;
  9.  
  10. cout<<"n=";cin>>n;
  11.  
  12. while (i<=n)
  13. {
  14.     E*=(2*i-1);
  15.     i++;
  16. }
  17.  
  18. cout<<"E="<<E;
  19.  
  20. return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement