Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 numberStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started