add laba3
This commit is contained in:
parent
5ead7f3628
commit
8581c27008
22
main.c
22
main.c
@ -1,3 +1,23 @@
|
||||
void main() {
|
||||
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("Æàðêî");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user