2. прописал логику лабортарной по ОА и П #1

Merged
anefedov merged 1 commits from vetka1 into main 2024-11-20 23:37:42 +04:00
Showing only changes of commit ebe953cfed - Show all commits

View File

@ -178,3 +178,26 @@ INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
}
return (INT_PTR)FALSE;
}
#include <stdio.h>
#include <Windows.h>
void main() {
int v1, v2, v3;
int max;
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
printf("Введите 3 числа: ");
scanf_s("%d%d%d", &v1, &v2, &v3);
max = v1;
if (v2 > max) {
max = v2;
}
if (v3 > max) {
max = v3;
}
printf("max = %d", max);
}