Computer Science, asked by kashvimlang7, 3 months ago


Que 1. Write a program using modulo (%) operator in java.

Answers

Answered by ACBaouZakeruga
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