Multiplication Table in Java by taking the Number from the Command Line


class MultiTab
{
	public static void main(String[] args)
	{
		int i;
		int num = Integer.parseInt(args[0]);
		for(i=1; i<=10; i++)
		{
			System.out.println(num+ " * " +i+ " = "+num * i);
		}
	}
}

Snapshot of the o/p