Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     float liczba,ile =0;
  8.     cout << "Podaj liczbe: ";
  9.     cin >> liczba;
  10.     while (liczba <= 100)
  11.     {
  12.         liczba = liczba + liczba;
  13.         ile++;
  14.     }
  15.     cout << "Sumy sie zsumowaly: " << ile << " razy";
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement