diff options
Diffstat (limited to '1p19.cpp')
-rw-r--r-- | 1p19.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/1p19.cpp b/1p19.cpp new file mode 100644 index 0000000..5d1d104 --- /dev/null +++ b/1p19.cpp @@ -0,0 +1,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; +} |