Assignemnt #111 and 112th program

Code

///Name: Derrick Andreasen
///Period: 7
///Program name: 112th Program
///File name: Hund11prog.java
///Date Finished:4/18/2016

import java.util.Scanner;

public class Hund11prog
{
	public static void main( String[] args )
	{
		Scanner keyboard = new Scanner(System.in);

		// this is #1 - I'll call it "CN"
		for ( char c='A'; c <= 'E'; c++ )
		{
			for ( int n=1; n <= 3; n++ )
			{
				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" );
		}

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

//1.) The value ofthe variable is controlled by the inner loop.
//2.) The letters change and the numbers stay the same.
//3.) Each numbered pair of a-b is on a new line.
//4.) The phrase I typed is repeated each time "a" incresaes. 
   }
  }
    

Picture of the output

Assignment 112