From f0236b45042282ad26b5ab3b40c74e584d31645f Mon Sep 17 00:00:00 2001 From: oltnd Date: Sat, 26 Oct 2024 18:18:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20main.cpp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/main.cpp b/main.cpp index 49857c5..31840e1 100644 --- a/main.cpp +++ b/main.cpp @@ -47,6 +47,7 @@ void z3() { switch (choice) { case 1: { + //3 стороны double length, width; cout << "Введите длину и ширину прямоугольника: "; cin >> length >> width; @@ -74,7 +75,7 @@ void z3() { void z4() { HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE); - + //циклы SetConsoleTextAttribute(hConsole, 240); cout << " " << endl; SetConsoleTextAttribute(hConsole, 16); @@ -91,7 +92,7 @@ void z6() { string roman; cout << "Введите римское число: "; cin >> roman; - + //правила int result = 0; // Итоговое значение int prevValue = 0; // Предыдущее значение для сравнения @@ -128,7 +129,7 @@ void z6() { } void z2() { int number; - + //0.9 cout << "Введите число: "; cin >> number; @@ -138,7 +139,7 @@ void z2() { } int z1() { - + // проверка букав ofstream outFile("numbers.txt"); // Открываем файл для записи if (!outFile) { @@ -174,8 +175,8 @@ int z1() { cout << "Сумма чисел: " << sum << endl; } void z7() { - int S1 = 1; - int S2 = 1; + int S1 = 0; + int S2 = 0; // Параметры для первого варианта int m1 = 37, i1 = 3, c1 = 64; @@ -184,7 +185,7 @@ void z7() { int m2 = 25173, i2 = 13849, c2 = 65537; // Количество итераций - int iterations = 10; + int iterations = 100; // Первый вариант cout << "Первый вариант (m = " << m1 << ", i = " << i1 << ", c = " << c1 << "):" << endl;