Assignemnt #114 Multiplication Table

Code

    ///Name: Joshua Pell
    ///Period: 6
    ///Project Name: Multiplication Table
    ///File Name: multTable.java
    ///Date: 5/31/2015
    
public class multTable
{
        public static void main( String[] args )
        {
                System.out.println( "x | 1\t2\t3\t4\t5\t6\t7\t8\t9\t" );
                System.out.println( "==+===================================================================================================" );
                
                for ( int y = 1; y < 13; y++ )
                {
                        for ( int x = 1; x < 13; x++ )
                        {
                                if ( x == 1)
                                System.out.print( y + " | " + ( y * x ) + "\t");
                            else 
                                System.out.print( y * x  + "\t");
                        }
                    System.out.println();
                }
        }
}
    

Picture of the output

Assignment 114