Java 14.2 | Sololearn: Learn to code for FREE!

+1

Java 14.2

Hi, could anyone help me find the proper solution for multiple of 4 and 6.

4/12/2021 3:22:20 PM

Tejmes

6 Answers

New Answer

+1

Thx man

0

Use the modulo operator.

0

I know i need to use modulo, but cant find the proper combination of if, else if...

0

Use if for 10 and 9, and use else if for 4 and 6, and then else as the last statement.

0

if (number%9==0 && number%10==0) { } else if (number%4==0 || number%6==0){

0

How did you solve it?