Program to check whether 2 numbers are even or odd
JINGO:
Is it Java
Answers
Answered by
0
public class Numbers
{
public static void main (int a, int b)
{
{
if(a%2==0)
System.out.println("Even");
if(b%2==0)
System.out.println("Even");
}
else
{System.out.println("Odd");}
}
}
Thanks
Hope you like it.
If u like it mark it as brainliest.
{
public static void main (int a, int b)
{
{
if(a%2==0)
System.out.println("Even");
if(b%2==0)
System.out.println("Even");
}
else
{System.out.println("Odd");}
}
}
Thanks
Hope you like it.
If u like it mark it as brainliest.
Similar questions