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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!