diff --git a/main.py b/main.py index 83520f6..fc54f40 100644 --- a/main.py +++ b/main.py @@ -14,9 +14,10 @@ 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: ')) +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: ')) @@ -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!")