From 32522ef0ccd64e516eea4e7e54d25264f0a3c113 Mon Sep 17 00:00:00 2001 From: alexa Date: Wed, 23 Oct 2024 19:29:23 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=B2=20=D0=BA=D0=BE=D0=B4=20=D0=BB=D0=B0=D0=B1=D0=BE=D1=80?= =?UTF-8?q?=D0=B0=D1=82=D0=BE=D1=80=D0=BD=D0=BE=D0=B9=20=D1=80=D0=B0=D0=B1?= =?UTF-8?q?=D0=BE=D1=82=D1=8B=20=D0=B5=D1=89=D0=B5=20=D0=BE=D0=B4=D0=BD?= =?UTF-8?q?=D1=83=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=D0=BD=D0=BD=D1=83?= =?UTF-8?q?=D1=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- laba12/laba12/laba12.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/laba12/laba12/laba12.cpp b/laba12/laba12/laba12.cpp index 335545e..822f3e6 100644 --- a/laba12/laba12/laba12.cpp +++ b/laba12/laba12/laba12.cpp @@ -2,14 +2,14 @@ #include void main() { - int v1, v2, v3, v4, v5; + int v1, v2, v3, v4, v5, v6; int max; SetConsoleCP(1251); SetConsoleOutputCP(1251); printf("Введите 5 чисел: "); - scanf_s("%d%d%d%d%d", &v1, &v2, &v3, &v4, &v5); + scanf_s("%d%d%d%d%d", &v1, &v2, &v3, &v4, &v5, &v6); max = v1; if (v2 > max) { @@ -24,6 +24,9 @@ void main() { if (v5 > max) { max = v5; } + if (v6 > max) { + max = v6; + } printf("max = %d", max); } \ No newline at end of file