Filage

some help)

Nov 24th, 2022 (edited)
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int start;
  8.     int end;
  9.     int step;
  10.     cout << "Введите начало";
  11.     cin >> start;
  12.     cout << "Введите конец";
  13.     cin >> end;
  14.     cout << "Введите шаг";
  15.     cin >> step;
  16.     cout << start << " ";
  17.     while (start < end - step) {
  18.         start = start + step;
  19.         cout << start << " ";
  20.     }
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment