From 2708f06a553dcc3d041ae95f15ca17799d3094c1 Mon Sep 17 00:00:00 2001 From: Justsvetoslavov Date: Wed, 27 Oct 2021 23:11:32 +0300 Subject: Update Pract 03-04 --- pract_SI/Pract. 03-04/Solutions/task2.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pract_SI/Pract. 03-04/Solutions/task2.cpp (limited to 'pract_SI/Pract. 03-04/Solutions/task2.cpp') diff --git a/pract_SI/Pract. 03-04/Solutions/task2.cpp b/pract_SI/Pract. 03-04/Solutions/task2.cpp new file mode 100644 index 0000000..b3e970d --- /dev/null +++ b/pract_SI/Pract. 03-04/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