From e6aae64d4ac7f6f99edddb31d7e01915aa29f135 Mon Sep 17 00:00:00 2001 From: Justsvetoslavov Date: Sun, 24 Oct 2021 14:18:39 +0300 Subject: Added task 1+2 --- pract_SI/pract. 03/Solutions/task2.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pract_SI/pract. 03/Solutions/task2.cpp (limited to 'pract_SI/pract. 03/Solutions/task2.cpp') 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 + +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; +} -- cgit v1.3.1-23-gd82d