Assignemnt #114 Multiplication Table
Code
///Name: Prooz Fereydouni
///Period: 7
///Project Name: Multiplication Table
///File Name: MT.java
///Date: 5/8/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