From 60b7a9f89c71b0f0d9e9bd426c1d9675fbf79ade Mon Sep 17 00:00:00 2001 From: "Alice (KalenskovaDA)" Date: Mon, 26 May 2025 14:33:12 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=BD=D1=8B=D0=B5=20=D1=82=D0=B8=D0=BF=D0=B0=20double?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 6dbffa8..9bf4694 100644 --- a/main.cpp +++ b/main.cpp @@ -5,11 +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'; cout<< "A - B = " << a - b << '\n'; cout<< "A * B = " << a * b << '\n'; cout<< "A / B = " << a / b << '\n'; cout<<"maximum = "<< max(a,b) <<'\n'; + }