Question: Java Question2: * Write a Java program that asks the user to enter an integer that is greater than 100 and divisible by Z. If

Java
Question2: * Write a Java program that asks the user to enter an integer that is greater than 100 and divisible by Z. If the user entered a correct number, the program will display "Correct!", otherwise it will display "Sorry, incorrect number!" Sample run 1: Enter an integer greater than 100 and divisible by 7: 140 140: Correct! Sample run 2: Enter an integer greater than 100 and divisible by 7: 14 14: Sorry, incorrect number! Sample run 3: Enter an integer greater than 100 and divisible by 7: 120 120: Sorry, incorrect number
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
