From a176576f0f4948bb7b48d2dc88f6377c5b511cc1 Mon Sep 17 00:00:00 2001 From: alexa Date: Thu, 7 Nov 2024 09:14:06 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BA=D0=BE=D0=BC=D0=BC=D0=B8=D1=82=20=D0=B2?= =?UTF-8?q?=D0=B5=D1=82=D0=BA=D0=B02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- laba12/laba12/laba12.cpp | 43 +++++++++++----------------------------- 1 file changed, 12 insertions(+), 31 deletions(-) diff --git a/laba12/laba12/laba12.cpp b/laba12/laba12/laba12.cpp index 4b07859..8e39799 100644 --- a/laba12/laba12/laba12.cpp +++ b/laba12/laba12/laba12.cpp @@ -1,35 +1,16 @@ #include -#include - -void main() { - int v1, v2, v3, v4, v5, v6, v7; - int max; - +#include +void main() +{ SetConsoleCP(1251); SetConsoleOutputCP(1251); - printf("Введите 7 чисел: "); - scanf_s("%d%d%d%d%d", &v1, &v2, &v3, &v4, &v5, &v6, &v7); - - max = v1; - if (v2 > max) { - max = v2; - } - if (v3 > max) { - max = v3; - } - if (v4 > max) { - max = v4; - } - if (v5 > max) { - max = v5; - } - if (v6 > max) { - max = v6; - } - if (v7 > max) { - max = v7; - } - printf("max = %d", max); - -} \ No newline at end of file + printf("Нефедов\n"); + printf("Александр\n"); + printf("Васильевич\n"); + printf("\n"); + printf("Группа: ПИбд-13-2024\n"); + printf("Дата: 05.09.2024\n"); + printf("Предмет: основы алгоритмизации и программирования\n"); + printf("Лабораторная работа №1\n"); +}