Assignment #113 Basic Nested Loops

Code

    /// Name: John Huh
    /// Period: 6
    /// Program Name: Basic Nested Loops
    /// File Name: Basic.java
    /// Date Finished: 4/19/2016
    
    import java.util.Scanner;
    
    public class Basic
    {
    	public static void main( String[] args ) throws Exception
    	{
            
            Scanner keyboard = new Scanner(System.in);
            
            System.out.println();
    		for ( int x=0; x<=5; x++ )
            {
                for ( int y=0; y<=5; y++ )
                {
                    System.out.print( "(" + x + "," + y + ")" ); 
                }
                System.out.println();
            }
            System.out.println();
    	}
    }
    

Picture of the output

Assignment 1