Bob103

РЕШАТЬ

Nov 17th, 2015
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4. int main()
  5. {float n;
  6. float x,p=1,b;
  7. cout<<"x=";cin>>x;
  8. cout<<"n=";cin>>n;
  9. b=1/x
  10. for (int i=1;i<=n;i++)
  11. {b*=x;p*=1+b/(pow (n,3)-1);}
  12. cout<<"p="<<p<<endl;
  13. system("pause");
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment