From d9705f455f50ceff763744ca8b026f9f0b621a1d Mon Sep 17 00:00:00 2001
From: "Bob (KolomeytsevDA)" <KolomeytsevDA@mpei.ru>
Date: Tue, 9 Apr 2024 21:02:11 +0300
Subject: [PATCH] =?UTF-8?q?code:=20=D0=BF=D0=B5=D1=87=D0=B0=D1=82=D1=8C=20?=
 =?UTF-8?q?=D0=BC=D0=B8=D0=BD=D0=B8=D0=BC=D1=83=D0=BC=D0=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 main.cpp | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/main.cpp b/main.cpp
index 1f832dc..7a7d00a 100644
--- a/main.cpp
+++ b/main.cpp
@@ -12,15 +12,13 @@ int main()
          << "A * B = " << a * b << '\n' //this was made by Bob
          << "A / B = " << a / b << '\n';
     int arr [4] = {a+b, a-b, a*b, a/b};
-    int max = arr[0];
-
+    int min = arr[0];
     for (int i = 0; i < 4; ++i)
     {
-        if (arr[i] > max) {
-            max = arr[i];
+        if (arr[i] < min) {
+            min = arr[i];
         }
     }
-
-    cout << max << endl;
+    cout << min << endl;
     return 0;
 }