Compare commits

..

No commits in common. "f25466e85417ae35ac842fa2a8536b2f1cc760d1" and "dd16a3269f72f3027a43e6091e73029328b9fa41" have entirely different histories.

View File

@ -181,23 +181,28 @@ INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
#include <stdio.h> #include <stdio.h>
#include <Windows.h> #include <Windows.h>
void main() { void main() {
int v1, v2, v3; int temperature;
int max;
SetConsoleCP(1251); SetConsoleCP(1251);
SetConsoleOutputCP(1251); SetConsoleOutputCP(1251);
printf("Введите 3 числа: "); printf("Введите температуру в Симферополе осенью: ");
scanf_s("%d%d%d", &v1, &v2, &v3); scanf_s("%d", &temperature);
max = v1; if ((temperature < 10 && temperature >= 0)) {
if (v2 > max) { printf("Мороз\n");
max = v2;
} }
if (v3 > max) { else if (temperature < 20 && temperature >= 10) {
max = v3; printf("Холодно\n");
}
else if (temperature < 30 && temperature >= 20) {
printf("Тепло\n");
}
else if (temperature >= 30) {
printf("Жарко\n");
} }
printf("max = %d", max);
} }