From 368f2a27c147e03bbba84ede7ca0ad8d86137bb7 Mon Sep 17 00:00:00 2001 From: "Alice (KrivovDA)" Date: Sun, 6 Apr 2025 14:48:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5=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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 0bbcdd5..4e1ce1c 100644 --- a/main.cpp +++ b/main.cpp @@ -5,12 +5,12 @@ using namespace std; int main() { cout << "Enter A and B: "; - int a, b; + double a, b; cin >> a >> b; cout << "A + B = " << a + b << '\n' << "A - B = " << a - b << '\n' << "A * B = " << a * b << '\n' - << "A / B = " << a / b << '\n' + << "A / B = " << a / b << '\n'; if (a < b) cout << "max = " << b; - else: cout << "max = " << a; + else cout << "max = " << a; }