From f159ef04eb03c5eff324b0e597d5b1f7b6ca9ff0 Mon Sep 17 00:00:00 2001 From: "Alice (KomkovBN)" Date: Mon, 11 Sep 2023 02:44:12 +0300 Subject: [PATCH] =?UTF-8?q?code:=20a=20=D0=B8=20b=20double?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index ecb4369..bce703b 100644 --- a/main.cpp +++ b/main.cpp @@ -5,7 +5,7 @@ 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';