diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-03 07:47:20 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-03 07:47:20 +0000 |
commit | 728d38700ae6746906a2784306dda6ec4980ecc2 (patch) | |
tree | 03f7be347ac1c60e6f3612f45ffb7a9d48329411 /wk6/lect/calculator.py | |
parent | 2c0def6fbe068f347cf28e01d4f18e2f0d3af507 (diff) |
Fri, May 3, 2024, 12:47 AM -07:00
Diffstat (limited to 'wk6/lect/calculator.py')
-rw-r--r-- | wk6/lect/calculator.py | 14 |
1 files changed, 10 insertions, 4 deletions
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) |