import
java.util.*;
class
check
{
int n;
void Get(int a)
{
n=a;
}
void Find()
{
if(n%2==0)
System.out.println("No.
is even");
else
System.out.println("No.
is odd");
}}
class
even
{
public static void main(String
args[])
{
Scanner sc=new
Scanner(System.in);
check ob=new check();
System.out.println("Enter
a no.:");
int a=sc.nextInt();
ob.Get(a);
ob.Find();
}
}
No comments:
Post a Comment