Nesting Loops

///Name: Sam Wilson 
///Period: 6
///Program Name: Nesting Loops
///File Name: nestingLoops.java
///Date Finished: 5/3/16



/// Inner loop canges quicker which affects the variables
/// Numbers are fixed letters vary
/// a-b all have diff lines
/// Gets repeated when you input a



public class nestingLoops
{
	public static void main( String[] args )
	{
		// this is #1 - I'll call it "CN"
		for ( int n=1; n <= 3; n++ )
		{
			for ( char c='A'; c <= 'E'; c++ )
			{
				System.out.println( c + " " + n );
			}
		}

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

		// this is #2 - I'll call it "AB"
		for ( int a=1; a <= 3; a++ )
		{
			for ( int b=1; b <= 3; b++ )
			{
				System.out.print( a + "-" + b + " " );
			}
			System.out.print( "Hi, Mr. Davis" );
		}

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

	}
}