write a program to check whether a number is even or not in java ans plzz fast
Answers
Answered by
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!☺️
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
Similar questions