From 18086a7718a71d8e2076f84faef7a07e6d797110 Mon Sep 17 00:00:00 2001 From: "Alice (ZelenkinaKM)" Date: Wed, 27 Mar 2024 17:06:48 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=B7=D0=B0=D0=BC=D0=B5=D0=BD=D0=B0=20?= =?UTF-8?q?=D1=82=D0=B8=D0=BF=D0=B0=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D1=85?= =?UTF-8?q?=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, 1 insertion(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 5f044b0..7a4d45a 100644 --- a/main.cpp +++ b/main.cpp @@ -5,11 +5,9 @@ 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; - float p[4] ={a+b, a-b, a*b, a/b}; float mins=10000;