write a program to accept a number and check whether the given number is even or odd
Answers
Answered by
1
Step-by-step explanation:
class sample
public static void main ( string [args] )
{
int a =23;
{
if( a˙/.2==0)
{
System . out . println("Number is even");
}
else
System . out . println("Number is odd");
}
}
Hope it helps
PLEASE MARK ME AS BRAINLIEST
Similar questions