Assignment 114; MultTable

Code

// Donovan Rich
// Period 6
// Multiplication Table
// MultTable.java
// 5/2/2016

public class MultTable
{
	public static void main( String[] args )
	{
    System.out.println("x  | 1 | | 2 | | 3 | | 4 | | 5 | | 6 | | 7 | | 8 | | 9 | " );
    System.out.println("===+======================================================= ");

		for ( int x=1; x <= 12; x++ )
		{
            System.out.print("\n" + x + " | " );
            for ( int b=1; b <= 9; b++ )
			{
                System.out.print( x*b + "     " );
			}
		}

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

	}
}

    

Picture of the output