Assignement:Creating coordinates from NestedLoops

Code

 /// Name: Sean Harrison
    /// Period: 7
    /// Program name: BasicNestedLoops
    /// File Name: BasicNestedLoops.java
    /// Date Finished: 4/25/2016
    
public class BasicNestedLoops
{
    public static void main( String[] args )
    {
        for ( int x = 0; x <= 5; x++ )
        {
            for ( int y = 0; y <= 5; y++ )
            {
                System.out.print( "(" + x + "," + y + ") " );
                if ( y == 5 )
                {
                    System.out.println();
                }
            }
        }
    }
}



            
       
 

Picture of the output

Assignment 113