Question: I need help with this program in Java Write a program that prompts the user to enter an integer and checks whether the number is
I need help with this program in Java
Write a program that prompts the user to enter an integer and checks whether the number is divisible by both 5 (by checking whether the reminder of the division is 0). The program will continue to ask user to enter a number until user enters 0.
Here is a sample run:
Please enter a number: 10
10 is divisible by 5
Please enter a number: 30
30 is divisible by both 5
Please enter a number: 23
23 is not divisible by 5
Please enter a number: 0
End of program. Bye.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
