Assignment #114 Multiplication Table
Code
/// Name: DeeJay Cerezo
/// Period: 7
/// Program Name: Multiplication
/// File Name: Mult.java
/// Date Finished: 4/16/2016
public class Mult
{
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 nuff.");
}
}
Picture of the output