Assignment #114 and Multiplication Table
Code
/// Name: Graham Pollock
/// Period: 5
/// Program Name: MTable
/// File Name: MTable.java
/// Date Finished: 0#/##/2016/
public class MTable
{
public static void main(String[] args)
{
System.out.println("X | 1 2 3 4 5 6 7 8 9");
System.out.println("==x==============================================================");
for (int y = 1; y < 13; y++)
{
System.out.println("");
System.out.print(y + " | ");
for (int x = 1; x < 10; x++)
{
int p = x * y;
System.out.print( p + "\t");
}
}
System.out.println("");
}
}
Picture of the output