From ae68843039e399d723689af6a44a36730e29d8e8 Mon Sep 17 00:00:00 2001 From: Insaf_Ilyazov Date: Mon, 18 Nov 2024 09:28:11 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BD=D0=BE=D0=B2=D0=B0=D1=8F=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=B4=D0=B0=D1=87=D0=B0=20=D0=B8=20=D1=83=D0=B4=D0=B0=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D1=81=D1=82=D0=B0=D1=80=D0=B0=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- населеие 1/FileName.c | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/населеие 1/FileName.c b/населеие 1/FileName.c index cdce432..3b7caee 100644 --- a/населеие 1/FileName.c +++ b/населеие 1/FileName.c @@ -1,15 +1,28 @@ #include #include #include - +/* 2024 */ void main() { SetConsoleCP(1251); SetConsoleOutputCP(1251); - int n = 5000; - int g = 2024; - do { - printf_s(" %d %d \n", g, n); - n = (n * 103) / 100; - g = g + 1; - } while (g <= 2040); -} \ No newline at end of file + + int sum; + printf_s(" . (, 2.600.000 = 2.600) = "); + scanf_s("%d", &sum); + if (sum <= 2000) { + printf_s(""); + } + if (2000 < sum && sum <= 3000) { + printf_s(""); + } + if (3000 < sum && sum <= 4000) { + printf_s(""); + } + if (4000 < sum) { + printf_s(" "); + } +} + +// + +// \ No newline at end of file