From ea3f5acd9642c18f857f21ecb63462d8c6ebdef9 Mon Sep 17 00:00:00 2001 From: "Alice (KireevYP)" Date: Sun, 24 Mar 2024 13:37:58 +0300 Subject: [PATCH] code: double --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index bcef3bc..2bad95b 100644 --- a/main.cpp +++ b/main.cpp @@ -3,7 +3,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' << "A - B = " << a - b << '\n'