Assignemnt #114 and Multiplication Table
Code
/// Name: David Shkolnikov
/// Period: 6
/// Program Name: Multiplication Table
/// File Name: MultiplicationTable.java
/// Date Finished: 5/5/2016
public class MultiplicationTable
{
public static void main( String[] args )
{
for ( int a = 0; a <= 12; a++ )
{
for ( int b = 0; b <= 9; b++ )
{
if ( a == 0 )
{
if ( b != 0 )
System.out.print("\t" + b);
if ( b == 9 )
System.out.println("\n==============================================================");
}
else
{
if ( b == 0 )
System.out.print(a + " | ");
else
System.out.print( (a * b) + "\t");
}
}
System.out.println();
}
}
}
Picture of the output