fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. float pr;
  7. float x;
  8. cout << "vvedite n";
  9. cin >> n;
  10. pr=1.1;
  11. x=1.1;
  12. for (int i=1; i<n; i++) {
  13. pr=pr*(pr+0.1);
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0s 16064KB
stdin
2
stdout
vvedite n