This commit is contained in:
Mr-Sulfate 2024-11-13 12:17:22 +04:00
parent b7675d444f
commit c91de5e5d1

33
work2/work2/work2.cpp Normal file
View File

@ -0,0 +1,33 @@
#include <math.h>
#include <Windows.h>
#include <stdio.h>
void main()
{
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
int t;
printf("Ââåäèòå òåìïåðàòóðó â êîìíàòå: ");
scanf_s("%d", t);
if (t<18) {
printf("> Õîëîäíî");
}
if (t >= 18 and t<22) {
printf("> Ïðîõëàäíî");
}
if (t>=22 and t<26) {
printf("> Òåïëî");
}
if (t >= 26) {
printf("> Æàðêî");
}
}