Compare commits
No commits in common. "f25466e85417ae35ac842fa2a8536b2f1cc760d1" and "dd16a3269f72f3027a43e6091e73029328b9fa41" have entirely different histories.
f25466e854
...
dd16a3269f
@ -181,23 +181,28 @@ INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
#include <stdio.h>
|
||||
#include <Windows.h>
|
||||
|
||||
|
||||
|
||||
void main() {
|
||||
int v1, v2, v3;
|
||||
int max;
|
||||
int temperature;
|
||||
|
||||
SetConsoleCP(1251);
|
||||
SetConsoleOutputCP(1251);
|
||||
|
||||
printf("Введите 3 числа: ");
|
||||
scanf_s("%d%d%d", &v1, &v2, &v3);
|
||||
printf("Введите температуру в Симферополе осенью: ");
|
||||
scanf_s("%d", &temperature);
|
||||
|
||||
max = v1;
|
||||
if (v2 > max) {
|
||||
max = v2;
|
||||
if ((temperature < 10 && temperature >= 0)) {
|
||||
printf("Мороз\n");
|
||||
}
|
||||
if (v3 > max) {
|
||||
max = v3;
|
||||
else if (temperature < 20 && temperature >= 10) {
|
||||
printf("Холодно\n");
|
||||
}
|
||||
else if (temperature < 30 && temperature >= 20) {
|
||||
printf("Тепло\n");
|
||||
}
|
||||
else if (temperature >= 30) {
|
||||
printf("Жарко\n");
|
||||
}
|
||||
printf("max = %d", max);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user