From b899325a4a1cbd7c19d03dd8e8fa6029b2c0dd84 Mon Sep 17 00:00:00 2001 From: "Alice (YershovArA)" Date: Mon, 27 Mar 2023 08:46:25 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=BC=D0=B8?= =?UTF-8?q?=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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 66b09f3..1a0026f 100644 --- a/main.cpp +++ b/main.cpp @@ -4,11 +4,14 @@ using namespace std; int main(){ cout << "Enter A and B: "; - int a, b; + int a, b, max, min; cin >> a >> b; cout << "A + B = " << a + b << '\n'; cout << "A - B = " << a - b << '\n'; cout << "A * B = " << a * b << '\n'; cout << "A / B = " << a / b << '\n'; - + min=a; + if (min>b) + min=b; + cout<