Computer Science, asked by pksehgaljaimatadi, 1 year ago

write a program to check whether a number is even or not in java ans plzz fast

Answers

Answered by Samanwita
1
HEYA FRIEND,☺️

HERE IS YOUR ANSWER,

class P
{
public static void main(int x)
{
if(x%2==0)
{
System.out.println("Even");
}
else
{
System.out.println("Odd");
}
}
}

HOPE IT HELPS YOU!☺️

pksehgaljaimatadi: hi
pksehgaljaimatadi: aap kaise ho??
Similar questions