Assignemnt #111 and NestingLoops

Code

/// name: Leila Ordukhani
/// period: 6
/// program name: One Hundred and One Program
/// file name: NestingLoops.java
/// date finished: 4/19/16

public class NestingLoops
{
    public static void main( String[] args )
    {
   
        for ( char c='A'; c <= 'E'; c++ )
        {
            for ( int n=1; n <= 3; n++ )
            {
                System.out.println( c + " " + n );
            }
        }

        System.out.println("\n");

        for ( int a=1; a <= 3; a++ )
        {
            for ( int b=1; b <= 3; b++ )
            {
                System.out.print( a + "-" + b + " " );
            }
    
        }

        System.out.println("\n");

    }
}
    ///the variable n changes much faster because it changes 3 times every time c changes
    ///the output changes by counting numebr then charater, not character then number
    ///the output changes by displaying th enumber pairs vetically rather than horizontally
    ///the output changes by making it a new line everytime b counts to 3 and everytime a changes
  

Picture of the output

Assignment 111