import java.util.Scanner;
public class LoneTeen {
public static void loneteen(int a,int b)
{
if(((a<13)||(a>19)&&(b<=13)||(b>=19))||((b<13)||(b>19)&&(a<=13)&&(a>=19)))
System.out.println(true);
else
System.out.println(false);
//THIS PROGRAM IS 90 % only correct by k.saravanan
}
public static void main(String args[])
{
Scanner in=new Scanner(System.in);
System.out.println("enter two integers :");
int i=in.nextInt();
int j=in.nextInt();
loneteen(i,j);
}
No comments:
Post a Comment
Please post your comments. Your comments make us to write more programs for you.