From f7b6ce951ed87cc3fdfe80a567d985a533898c17 Mon Sep 17 00:00:00 2001 From: "Alice (PyapievaAV)" Date: Sun, 30 Mar 2025 15:31:24 +0300 Subject: [PATCH] =?UTF-8?q?code:=20=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= 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 296fc03..d0fcdce 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 << endl; cout << "a - b = " << a - b << endl;