Assignment #114 and Basic Nested Loops

Code

    ///Name: Tim Gibson
    ///Period: 6
    ///Project Name: Multiplication Table
    ///File Name: Table.java
    ///Date Finished: 12/10/15
        
    public class Table
    {
        public static void main ( String[] args )
        {
             System.out.println( "x | 1   2\t3\t4\t5\t6\t7\t8\t9");
             System.out.println( "==+==================================================================");
            for ( int n = 1; n <= 12; n++)
            {
                System.out.print( n + " | " );
                for ( int x = 1; x <= 9; x++)
                {
                    int y = n * x;
                    System.out.print( y + "\t" );
                }
                System.out.println();
            }
        }
    }
    

Picture of the output

114