Assignment #114

Code

        /// Name: Georgi Atanasov
        /// Period: 5
        /// Program Name: Multiplication Table
        /// File Name: MultipleTable.java
        /// Date Finished: 5/6/2016
    
    public class MultipleTable
    {
        public static void main(String[] args)
        {
            System.out.println("x | 1\t2\t3\t4\t5\t6\t7\t8\t9");
            System.out.println("==+==================================================================");
            
            for (int a = 1; a < 13; a++)
            {
                System.out.print( a + " | ");
                
                for (int b = 1; b < 10; b++)
                {
                    System.out.print( (a*b) + "\t" );
                }
                System.out.println();
            }
        }
    }
    

Picture of the output

Assignment 114