input a integer,test and print if the number is even or odd
Answers
Answered by
0
class k
{
public static void main(String args[])
{
int n;
if(n%2==0)
{
s.o.pln(even no.)
}
else
{
s.o.pln(odd no.)
}}}
{
public static void main(String args[])
{
int n;
if(n%2==0)
{
s.o.pln(even no.)
}
else
{
s.o.pln(odd no.)
}}}
Similar questions