Que 1. Write a program using modulo (%) operator in java.
Answers
Answered by
1
Answer:
public class main
{
public static void main()
{
int a = 25;
if(a%2==0)
System.out.println(“it is divisible by two”);
else
System.out.println(“it is not divisible by two”);
}
}
Similar questions