From ebe953cfed7ffe92f4859daeeb962f403cd556c3 Mon Sep 17 00:00:00 2001 From: alexa Date: Wed, 20 Nov 2024 23:34:58 +0400 Subject: [PATCH] =?UTF-8?q?2.=20=D0=BF=D1=80=D0=BE=D0=BF=D0=B8=D1=81=D0=B0?= =?UTF-8?q?=D0=BB=20=D0=BB=D0=BE=D0=B3=D0=B8=D0=BA=D1=83=20=D0=BB=D0=B0?= =?UTF-8?q?=D0=B1=D0=BE=D1=80=D1=82=D0=B0=D1=80=D0=BD=D0=BE=D0=B9=20=D0=BF?= =?UTF-8?q?=D0=BE=20=D0=9E=D0=90=20=D0=B8=20=D0=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WindowsProject11/WindowsProject11.cpp | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) 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); + +} -- 2.25.1