1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#include <iostream> /* * * Exercise 1.19 * * */ int main () { int64_t beg; int64_t end; std::cout << "Enter beginning and end number: "; std::cin >> beg >> end; while(beg <= end) { std::cout << beg << " "; beg++; } std::cout << std::endl; return 0; }