Write a java program that uses a while-loop to check for


Write a Java program that uses a while-loop to check for all numbers between 0 and 500 that are: 
(a): a multiple of 5 and 7 
(b): a multiple of 5 or 7 

The program should print in the format of the sample output below. 
Sample Output 
0 is a multiple of 5 or 7 
5 is a multiple of 5 or 7 
7 is a multiple of 5 or 7 
10 is a multiple of 5 or 7 
...etc... 
35 is a multiple of 5 and 7 
40 is a multiple of 5 or 7 
...etc... 

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Write a java program that uses a while-loop to check for
Reference No:- TGS01688850

Now Priced at $10 (50% Discount)

Recommended (98%)

Rated (4.3/5)