Assignemnt #113: Basic Nested Loops

Code

    /// Name: Cassie Rapp
    /// Period: 6
    /// Program Name: Basic Nested Loops
    /// File Name: BasicNest.java
    /// Date Finished: 5/3/2016
    
    public class BasicNest {
        
        public static void main(String[] args) {
            
            int i, n;
            
            for ( i=1; i< 6; i++ ) {
                for ( n=1; n< 6; n++ ) {
                    System.out.print( "(" + i + "," + n + ") " );
                }
                System.out.println();
            }
            
        }
    }
    

Picture of the output

Assignment 113