Computer Science, asked by chandana9749, 2 months ago

write a program to check weather the given number is odd or even​

Answers

Answered by jeromeseejo73
3

Answer:

public class num

{

public static void main(String[] args)

{

int num=10;

if(num%2==0)

System. out. println("The number is even") ;

else

System. out. println("The number is odd") ;

}

}

Similar questions