diff --git a/WindowsProject11/WindowsProject11/WindowsProject11.cpp b/WindowsProject11/WindowsProject11/WindowsProject11.cpp index 28b9990..60f18ec 100644 --- a/WindowsProject11/WindowsProject11/WindowsProject11.cpp +++ b/WindowsProject11/WindowsProject11/WindowsProject11.cpp @@ -178,3 +178,26 @@ INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) } return (INT_PTR)FALSE; } +#include +#include + +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); + +}