Compare commits

...

3 Commits
main3 ... main

Author SHA1 Message Date
c16146ce23 fix 2024-11-25 18:47:26 +04:00
25370da77b Merge pull request 'add laba 32' (#3) from main3 into main
Reviewed-on: #3
2024-11-25 18:25:48 +04:00
8581c27008 add laba3 2024-11-25 18:16:48 +04:00

23
main.c
View File

@ -1,3 +1,26 @@
include <stdio.h>
#include <Windows.h>
int main() {
int t;
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
printf("Ââåäèòå òåìïåðàòóðó:");//Óëüÿîâñê ñåíòÿáðü
scanf_s("%d", &t);
if (t < 10) {
printf("Ìîðîç");
}
if ((10 <= t) && (t < 15)) {
printf("Õîëîäíî");
}
if ((15 <= t) && (t < 26)) {
printf("Òåïëî");
}
if (t >= 26) {
printf("Æàðêî");
}
}
/ çàäà÷à 6
//#include <stdio.h>
//#include <Windows.h>