diff options
Diffstat (limited to 'wk6/lect')
-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) |