Assignment #114
Code
/// Name: Jonathan Stine
/// Period: 5
/// Program Name: Multiplication Table
/// File Name: Multi.java
/// Date Finished: 1/27/2016
public class Multi {
public static void main(String[] args) {
for ( int i=0; i< 13; i++ ) {
if ( i == 0 ) {
System.out.println( "x | 1\t2\t3\t4\t5\t6\t7\t8\t9" );
System.out.println( "==+==================================================" );
}
System.out.print( i + " | " );
for ( int n=1; n< 10; n++ ) {
System.out.print( i*n+ "\t" );
}
System.out.print("\n");
}
}
}
Code Output