Computer Science, asked by sristi999, 1 year ago


Write a program to accept a number and check whether the number is divisible
by 3 as well as 5. Otherwise, decide:
(a) Is the number divisible by 3 and not by 5?
(b) Is the number divisible by 5 and not by 3?
(c) Is the number neither divisible by 3 nor by 5?
The program displays the message accordingly.

Pls solve using scanner class (use conditional statements like if, else if, etc.) ​

Answers

Answered by harsh627180
8

Explanation:

please search this questions on snap solve

Similar questions