Assignment 113, Basic Nested Loops

Code

   ///Name: Stella Koliavas
   ///Period: 5
   ///Program Name: Basic Nested Loops
   ///File Name: BasicNest.java
   ///Date Finshed: 5/9/16
   
   public class BasicNest
  {
	public static void main( String[] args )
	{
		for ( int x=0; x <= 0; x++ )
        {
          for ( int y=0; y <= 5 ; y++  )
		  {
            System.out.print( "("+ x + ", " + y + ") " );
		  }
        }
        
        System.out.println(" ");
        
        for ( int x=1; x <= 1; x++ )
        {
          for ( int y=0; y <= 5 ; y++  )
		  {
            System.out.print( "("+ x + ", " + y + ") " );
		  }
        }
        
        System.out.println(" ");
        
        for ( int x=2; x <= 2; x++ )
        {
          for ( int y=0; y <= 5 ; y++  )
		  {
            System.out.print( "("+ x + ", " + y + ") " );
		  }
        }
        
        System.out.println(" ");
        
        for ( int x=3; x <= 3; x++ )
        {
          for ( int y=0; y <= 5 ; y++  )
		  {
            System.out.print( "("+ x + ", " + y + ") " );
		  }
        }
        
        System.out.println(" ");
        
        for ( int x=4; x <= 4; x++ )
        {
          for ( int y=0; y <= 5 ; y++  )
		  {
            System.out.print( "("+ x + ", " + y + ") " );
		  }
        }
        
        System.out.println(" ");
        
        for ( int x=5; x <= 5; x++ )
        {
          for ( int y=0; y <= 5 ; y++  )
		  {
            System.out.print( "("+ x + ", " + y + ") " );
         
		  }
        }
        
        System.out.println(" ");
        
	  }
  }





        
        
        
    

Picture of the output

Assignment 113