Computer Science, asked by rajdeepsurroy950, 3 months ago

wap to check a number is even or not dynamically

Answers

Answered by achin65
0

Answer:

this is very easy.

class number

{

public static void main(String args[])

{

n=5;

if(n%2==0)

{

System. out. println("Number is even. ");

}

else

{

System. out. println(" Number is odd. ");

}

}

}

Similar questions