Assignemnt #110 Individual Digit

Code

 /// Name: JJ Deng
    /// Period: 6
    /// Program Name: Multiplication Table
    /// File Name: MultiTable.java
    /// Date Finished: 4/30/2016
  
        public class MultiTable
        {
        	public static void main( String[] args ) throws Exception
        	{
        		System.out.println();
        
        		for ( int i = 0; i < 13; i++)
        		{
        			for ( int a = 0; a < 10; a++)
        			{
        				if (i==0)
        				{
        				if (a!=0)System.out.print("    "+a);
        				if (a==9) System.out.println("");
        				}
        				else
        				{
        				if (a==0) System.out.print(i+" |  ");
        				else System.out.print((i*a)+"    ");
        				}
        			}
        			System.out.println();
                }
        	}
        }

   

    

Picture of the output

Assignment 112