Kacper_Michalak

Zadanie pętle 5

Dec 8th, 2020 (edited)
99
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. using namespace std;
  3. int main()
  4. {
  5.     int x,y=0;
  6.  
  7.     cout << "Podaj przeskok:" << endl;
  8.     cin >> x;
  9.  
  10.     do
  11.     {
  12.         cout << y << " ";
  13.         y += x;
  14.     } while (y <= 200);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment