Assignemnt #114 and MultiplicationTable
Code
/// name: Leila Ordukhani
/// period: 6
/// program name: One Hundred and Four Program
/// file name: MultiplicationTable.java
/// date finished: 4/26/16
import java.util.Scanner;
public class MultiplicationTable
{
public static void main( String[] args ) throws Exception
{
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