Computer Science, asked by vanshikaminocha1111, 10 months ago

> Accept a numbers and check whether the number is divisible by both 2 and 3 or not, without
using the && operator.Write a Java Program...

pls...its urgent...​

Answers

Answered by Aditibiswas1986
3

Answer:

Import java.util.*;

public class check

{

int;

Scanner sc=new scanner (system. in);

S.o.pln("Enter a number") ;

a=sc.next Int();

If(a%2,3==0)

{

S.o.pln("It is divisible by 2,3");

}

else

S.o.pln("It is not divisible by 2,3")

}

}

}

Similar questions