import java.io.*;
class aman
{
public void trial()throws IOException
{
InputStreamReader abc = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(abc);
int num;
System.out.println("Enter Number");
num = Integer.parseInt(br.readLine());
if(num%2==0)
{
System.out.println("even");
}
else
{
System.out.println("odd");
}
}
}
No comments:
Post a Comment