Assignment 114: Multiplicaton Table
Code
///Name: Ryan McAteer
///Period: 5
///Project Name: Table
///File Name: Assignment114.java
///Date: 5/2/2016
public class Assignment114
{
public static void main( String[] args ) throws Exception
{
System.out.println();
for ( int i = 0; i < 13; i++)
{
for ( int j = 0; j < 10; j++)
{
if (i==0)
{
if (j!=0)System.out.print(" "+j);
if (j==9) System.out.println("\n ------------------------------------------------------------");
}
else
{
if (j==0) System.out.print(i+" | ");
else System.out.print((i*j)+" ");
}
}
System.out.println();
}
System.out.println("\n Good enough.");
}
}
Picture of the output