Thursday, September 21, 2006

WhileExample2



      public class WhileExample2
{
	public static void main(String[] args)
	{
		int num = 1;
		while(num <= 10)
		{
			System.out.println(num);
			num++;	
		}
	}
}

0 Comments:

Post a Comment

<< Home