Question: PLEASE WRITE THE CODE IN JAVA FOR BOTH PARTS THANK U 2. Write a program that asks the user to enter two numbers and displays
PLEASE WRITE THE CODE IN JAVA FOR BOTH PARTS THANK U

2. Write a program that asks the user to enter two numbers and displays if one number is larger, equal to or lesser than the other number. .1. A number x is divisible by y if the remainder after the division is zero. Write a program that prompts the user to enter an integer and checks whether the number is divisible by both 3 and 4 , or neither of them or just one of them. Sample Run: Enter an integer: 16 16 is divisible by 3 or 4 but not both. Enter an integer: 24 24 is divisible by both 3 and 4 Enter an integer: 7 7 is not divisible by either 3 or 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
