Advertisement
MeehoweCK

Untitled

Nov 15th, 2022
699
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     double x;
  8.     cout << "Podaj liczbe rzeczywista: ";
  9.     cin >> x;
  10.     double wynik = x;
  11.  
  12.     cout << 1 << endl;
  13.     while(wynik <= 10000)
  14.     {
  15.         cout << wynik << endl;
  16.         wynik *= x;     // wynik = wynik * x;
  17.     }
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement