lb4
This commit is contained in:
parent
b7675d444f
commit
c91de5e5d1
33
work2/work2/work2.cpp
Normal file
33
work2/work2/work2.cpp
Normal 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("> Æàðêî");
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user