From 7dfb6397a61ca22430c7ac161eb0cca0e7187b89 Mon Sep 17 00:00:00 2001 From: Misha Date: Tue, 30 Sep 2025 15:12:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C=20ta?= =?UTF-8?q?sk1.cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- task1.cpp | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 task1.cpp diff --git a/task1.cpp b/task1.cpp deleted file mode 100644 index f921a22..0000000 --- a/task1.cpp +++ /dev/null @@ -1,20 +0,0 @@ -#include -using namespace std; - -int main() { - int n; - cout << "Enter a four-digit number: "; - cin >> n; - - if (n < 1000 || n > 9999) { - cout << "Error! This is not a four-digit number." << endl; - } else { - int a = n / 1000; - int b = (n / 100) % 10; - int c = (n / 10) % 10; - int d = n % 10; - int r = c * 1000 + d * 100 + a * 10 + b; - cout << "Result: " << r << endl; - } - return 0; -}