0
How to solve it using sentinel loop?
Write a program that input two numbers and one operator. It displays the result by performing the operation on the given numbers .If the operator is divisionâ/â, It should check to make sure that the divisor is not equal to zero. if operator is not + ,/,- or * then the program should print invalid operator ,It also asks the user whether he/she wants to calculate another operation. If user enter âYâ, it again input numbers and operator and again perform the operation. But if user input âNâ, program terminate and show the Message âTHANK YOU!!!â
1 Answer
+ 3
I will give you the last part:
if input().upper() == 'N':
print('THANK YOU!!!')
Maybe you can show us, what you have done