Assignemnt #113 Basic Nested Loops

Code

     ///Name: Prooz Fereydouni
    ///Period: 7
    ///Project Name: Basic Nested Loops
    ///File Name: BNL.java
    ///Date: 5/8/2016
    
public class BNL
{
    public static void main( String[] args)
    {
        for( int n = 0 ; n <= 5 ; n = n+1 )
        {
            for( int m = 0 ; m <= 5 ; m = m+1 )
            {
                System.out.print("(" + n + "," + m + ") ");
            }
            System.out.println();
        }
    }
}

    

Picture of the output

assignment113