diff --git a/ConsoleApplication1/ConsoleApplication1.cpp b/ConsoleApplication1/ConsoleApplication1.cpp index 0b4c49b..17ce765 100644 --- a/ConsoleApplication1/ConsoleApplication1.cpp +++ b/ConsoleApplication1/ConsoleApplication1.cpp @@ -1,28 +1,22 @@ #include #include -void main() -{ - int a; + +void main() { SetConsoleCP(1251); SetConsoleOutputCP(1251); - printf("Ульяновск\n"); - printf("Лето\n"); - printf("Введите температуру\n"); + int a; + printf("Введите цену надувной лодки\n"); scanf_s("%d", &a); - if (a > 0 and a < 10) - { - printf("Холодно"); + if (a > 0 and a < 15000) { + printf("Дешево"); } - if (a >= 10 and a < 15) - { - printf("Прохладно"); + if (a >= 15000 and a < 30000) { + printf("Нормально"); } - if (a >= 15 and a < 25) - { - printf("Тепло"); + if (a >= 30000 and a < 75000) { + printf("Дорого"); } - if (a >= 25 and a < 35) - { - printf("Жарко"); + if (a >= 75000 and a < 150000) { + printf("Ужас дорого"); } } \ No newline at end of file