From 00f15aa8d69a53c3ffa55661283aa06a6d6bd30f Mon Sep 17 00:00:00 2001 From: Justsvetoslavov Date: Thu, 28 Oct 2021 17:33:12 +0300 Subject: Update sem.03 --- 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