Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int start;
- int end;
- int step;
- cout << "Введите начало";
- cin >> start;
- cout << "Введите конец";
- cin >> end;
- cout << "Введите шаг";
- cin >> step;
- cout << start << " ";
- while (start < end - step) {
- start = start + step;
- cout << start << " ";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment