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