Assignment #114
Code
///Name: Cody Swain
///Period: 6
///Project Name: multiplicationTable
///File Name: multiplicationTable.java
///Date: 5/3/16
public class multiplicationTable
{
public static void main(String[] args )
{
System.out.println("x | 1\t2\t3\t4\t5\t6\t7\t8\t9 " );
System.out.println("==+================================================================" );
for (int x=1; x<10; x++){
System.out.print( x + " | " );
for (int n=1; n<10; n++){
System.out.print( (n*x) + "\t" );
}
System.out.println();
}
for (int x=10; x<13; x++){
System.out.print( x + "| " );
for (int n=1; n<10; n++){
System.out.print( (n*x) + "\t" );
}
System.out.println();
}
}
}
Picture of the output