Merge pull request '2. прописал логику лабортарной по ОА и П' (#1) from vetka1 into main
Reviewed-on: #1
This commit is contained in:
commit
fc81b17c67
@ -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);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user