Website Summary Files Commits Branches @commit @diff @stats
path: root / pract_SI / Pract. 03 / Solutions / task2.cpp
diff options
context:
space:
mode:
1 files changed, 17 insertions, 0 deletions
-rw-r--r--pract_SI/Pract. 03/Solutions/task2.cpp17
diff --git a/pract_SI/Pract. 03/Solutions/task2.cpp b/pract_SI/Pract. 03/Solutions/task2.cpp
new file mode 100644
index 0000000..b3e970d
--- /dev/null
+++ b/pract_SI/Pract. 03/Solutions/task2.cpp
@@ -0,0 +1,17 @@
+#include <iostream>
+
+using namespace std;
+
+int main()
+{
+ unsigned long long number;
+ cin >> number;
+
+ for (unsigned long long x = 1, y = number; x < number; x++)
+ {
+ cout << "x = " << x << " "
+ << "y = " << --y << endl;
+ }
+
+ return 0;
+}