Assignment #113

Code

/// Name: Jonathan Stine
/// Period: 5
/// Program Name: Basic Nested Loops
/// File Name: BasicNest.java
/// Date Finished: 3/29/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();
            }
            
        }
    }

    
 
    

Code Output