Assignment #114
Code
/// Name: Mahima Choudhary
/// Period: 6
/// Program Name: Multiplication Table
/// File Name: MultipleTable.java
/// Date Finished: 2/8/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