public class MultiTable
{
public static void main( String[] args ) throws Exception
{
System.out.println( "x | 1\t 2\t 3\t 4\t 5\t 6\t 7\t 8\t 9\t " );
int x, y;
for( x = 1; x < 13; x++ )
{
if ( x < 10 )
{
System.out.print ( x + " | " );
}
else
{
System.out.print ( x + "| " );
}
for ( y = 1; y < 10; y++ )
{
if ((x*y)>9 )
{
System.out.print( (x*y) + " " );
}
else
{
System.out.print( (x*y) + " " );
}
}
System.out.println("");
}
System.out.println("");
}
}