Computer Science, asked by yashraj4786, 1 year ago

write a program in Java using switch case to check whether a number is divisible by 3 or not​

Answers

Answered by rjgolu
0

This will be done using if...else statement and ternary operator in Java. ... Java Program to Check Whether a Number is Even or Odd ... If num is divisible by 2 , we print num is even.


yashraj4786: but the question is not that
yashraj4786: it's to find whether a number is divisible by 3 or not using switch case
Similar questions