//  Scott DeRuiter           9/12/00
//  AgeCheck.java
//  Will ask for age to be input and then a greetin1

public class AgeCheck     
{
	public static void main (String [] args)  
	{
		int  x = 2;
		if (x > 10)  
		{
			System.out.println("\n\nYou are greater than 10!");
			System.out.println("\n\nIsn't that wonderful!\n\n");
		}
		else   
		{
			System.out.println("\n\nYou are less than or equal to 10!\n\n");
		}
	}
}

Back to Lesson 6 Examples

Back to Java Main Page