program called Numbers . The program will ask a user to enter two numbers - x and
Fantastic news! We've Found the answer you've been seeking!
Question:
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
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date: