From 9933baf075b7cd7157aa45be870450ff3bf838b1 Mon Sep 17 00:00:00 2001 From: SankalpJangid <72187202+SankalpJangid@users.noreply.github.com> Date: Thu, 1 Oct 2020 12:32:48 +0530 Subject: [PATCH 1/2] Update main.py --- main.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 83520f6..916acae 100644 --- a/main.py +++ b/main.py @@ -14,7 +14,8 @@ def divide(num1, num2): 3. multiply 4. Division 5. Powers -6. Remainders""") +6. Remainders +7. Floor Division""") select = int(input('Which operation do you need?1/2/3/4/5/6: ')) @@ -33,5 +34,7 @@ def divide(num1, num2): print(num1, '^', num2, '=', num1**num2) elif select == 6: print(num1, 'R', num2, '=', num1 % num2) +elif select == 7: + print(num1, '//', num2, '=', num1 // num2) else: - print("Invalid input!") \ No newline at end of file + print("Invalid input!") From 67232afb4dc2df962b6da3d0b28fbe605b73ffbb Mon Sep 17 00:00:00 2001 From: SankalpJangid <72187202+SankalpJangid@users.noreply.github.com> Date: Thu, 1 Oct 2020 12:34:47 +0530 Subject: [PATCH 2/2] Update main.py --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 916acae..fc54f40 100644 --- a/main.py +++ b/main.py @@ -17,7 +17,7 @@ def divide(num1, num2): 6. Remainders 7. Floor Division""") -select = int(input('Which operation do you need?1/2/3/4/5/6: ')) +select = int(input('Which operation do you need?1/2/3/4/5/6/7: ')) num1 = int(input('Please enter your first number: ')) num2 = int(input('Please enter your second number: '))