Assignemnt #114 and Multiplication Tables
Code
/// Name: Kyle Ivy
/// Period: 5
/// Program Name: MultTable.java
/// File Name: MultTable.java.java
/// Date Finished: 4/20/2016
public class MultTable
{
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();
}
}
}
prog114.PNG