From 728d38700ae6746906a2784306dda6ec4980ecc2 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Fri, 3 May 2024 07:47:20 +0000 Subject: Fri, May 3, 2024, 12:47 AM -07:00 --- wk6/lect/calculator.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'wk6/lect') diff --git a/wk6/lect/calculator.py b/wk6/lect/calculator.py index 07cf066..cae3ca8 100644 --- a/wk6/lect/calculator.py +++ b/wk6/lect/calculator.py @@ -1,6 +1,12 @@ -import cs50 +# import cs50 -x = cs50.get_int("x: ") -y = cs50.get_int("y: ") +# x = cs50.get_int("x: ") +# y = cs50.get_int("y: ") -print(x + y) +# print(x + y) + +x = int(input("x: ")) +y = int(input("y: ")) + +z = x / y +print(z) -- cgit v1.2.3