Assignemnt #114
Code
/// Name: Daniel Nguyen
/// Period: 6
/// Project Name: Table
/// File Name: Table.java
/// File Name: Table.java
/// Date: 3/11/2015
public class Table
{
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.");
}
}
// I would suppose that assignment does not require a perfect straight rows in the table.
Picture of the output