public class Tutorial
{
public static void main(String[] args)
{
byte age = 20;
if (age >= 18 && age < 21)
System.out.println("I welcomed you to this program.");
else if (age >= 21)
System.out.println("You're a grown person!");
else
System.out.println("You are a minor. Get out!");
}
}
You are a sheet
ReplyDelete