Nested Loops #113 (Graphs)

Code

/// Name: Amir Salehi
/// Period: 7
/// Program Name: Basic Nested Loops
/// File Name:BasicNestedLoops.java
/// Date Finished: 5/1/2016

        public class BasicNestedLoops
    {
        public static void main( String[] args )
        {
            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(s) of the output

Assignment 7

Back to Homepage