public class HackDefence{
public static void main(String[]args){
int age=40;
if(age>=50)
System.out.println("You are old");
else if(age>=40)
System.out.println("You are almost old");
else if(age>=30)
System.out.println("You are young");
else
System.out.println("You are very young");
}
}
OUTPUT:
No comments:
Post a Comment