summaryrefslogtreecommitdiff
path: root/1p19.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-07-28 12:52:38 +0200
committerOskar <[email protected]>2024-07-28 12:52:38 +0200
commit5aac3c3f8bcfef0b2aad28d91d87b9ebf1d5e7df (patch)
tree38736b9f0c57f69e272121e0fc1f3969bb7468e2 /1p19.cpp
first commit
Diffstat (limited to '1p19.cpp')
-rw-r--r--1p19.cpp23
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;
+}