Question: program called Numbers . The program will ask a user to enter two numbers - x and y . The program should print True
program called Numbers. The program will ask a user to enter two numbers - x and y.
The program should print "True" if:
- value of x or value of y is 81,
- or sum of x and y is 81
- or the value of x raised to the power of y is 81
Otherwise, your program should print "False"
Example:
- Enter a first number: 81
- Enter a second number: 5
- Output: True
- Enter a first number: 60
- Enter a second number: 81
- Output: True
- Enter a first number: 70
- Enter a second number: 11
- Output: True
- Enter a first number: 3
- Enter a second number: 4
- Output: True
- Enter a first number: 10
- Enter a second number: 15
- Output: False
Step by Step Solution
There are 3 Steps involved in it
mainpy 1 Define the function to check the conditions 2 def checknumbersx y 3 if x 81 or y 5 else ... View full answer
Get step-by-step solutions from verified subject matter experts
