Assignemnt #109 Basic Nested Loop

Code

 /// Name: JJ Deng
    /// Period: 6
    /// Program Name: Basic Nested Loops
    /// File Name: BasicNestLoop.java
    /// Date Finished: 4/29/2016
  
        public class BasicNestLoop
        {
        	public static void main( String[] args ) throws Exception
        	{
        		System.out.println();
        		for ( int i = 0; i < 6; i++)
        		{
        			for ( int a = 0; a < 6; a++)
        			{
        				System.out.print("(" + i + "," + a + ")");
        			}
        			System.out.println();
        		}
        		System.out.println();
        	}
        }



    

Picture of the output

Assignment 113