From 9bcb099bceca0c7bd22a3a8b4c0db87b1e7dd71e Mon Sep 17 00:00:00 2001 From: "Alice (Ksenia)" Date: Sun, 31 Mar 2024 23:03:11 +0300 Subject: [PATCH 1/2] =?UTF-8?q?code:=20=D0=B7=D0=B0=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D0=B0=20=D1=82=D0=B8=D0=BF=D0=B0=20=D0=B4=D0=B0=D0=BD=D0=BD?= =?UTF-8?q?=D1=8B=D1=85=20=D0=BD=D0=B0=20double?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 7318c10..0e6b422 100644 --- a/main.cpp +++ b/main.cpp @@ -12,8 +12,8 @@ cout << "A + B = " << a + b << '\n' << "A * B = " << a * b << '\n' << "A / B = " << a / b << '\n'; - float m[4]={a+b, a-b, a*b, a/b}; - float maxx=0; + int m[4]={a+b, a-b, a*b, a/b}; + int maxx=0; for (int i=0; i<4; i++){ if(maxx Date: Sun, 31 Mar 2024 23:05:52 +0300 Subject: [PATCH 2/2] =?UTF-8?q?code:=20=D0=B7=D0=B0=D0=BC=D0=B5=D0=BD?= =?UTF-8?q?=D0=B0=20=D1=82=D0=B8=D0=BF=D0=B0=20=D0=B4=D0=B0=D0=BD=D0=BD?= =?UTF-8?q?=D1=8B=D1=85=20=D0=BD=D0=B0=20double?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 0e6b422..7318c10 100644 --- a/main.cpp +++ b/main.cpp @@ -12,8 +12,8 @@ cout << "A + B = " << a + b << '\n' << "A * B = " << a * b << '\n' << "A / B = " << a / b << '\n'; - int m[4]={a+b, a-b, a*b, a/b}; - int maxx=0; + float m[4]={a+b, a-b, a*b, a/b}; + float maxx=0; for (int i=0; i<4; i++){ if(maxx