jok/ConsoleApplication1/ConsoleApplication1.cpp

28 lines
472 B
C++
Raw Normal View History

2024-11-21 09:42:02 +04:00
#include <stdio.h>
#include <windows.h>
void main()
2024-11-21 09:41:41 +04:00
{
2024-11-21 09:42:02 +04:00
int a;
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
printf("Ульяновск\n");
printf("Лето\n");
printf("Введите температуру\n");
scanf_s("%d", &a);
if (a > 0 and a < 10)
{
printf("Холодно");
}
if (a >= 10 and a < 15)
{
printf("Прохладно");
}
if (a >= 15 and a < 25)
{
printf("Тепло");
}
if (a >= 25 and a < 35)
{
printf("Жарко");
}
}