? * ? table


Submit solution

Points: 20 (partial)
Time limit: 5.0s
Memory limit: 256M

Authors:
Problem types

題目說明

請輸入兩正整數(假設a, b),輸出a*b的乘法表

輸入限制: 均>=0

輸入

兩正整數(假設a, b)

輸出

a * b 乘法表(下面有格式)

System.out.print(a + " * " + b + " = " + result + "\t");

sample input1

3 4

sample output1

1 * 1 = 1       1 * 2 = 2       1 * 3 = 3       1 * 4 = 4
2 * 1 = 2       2 * 2 = 4       2 * 3 = 6       2 * 4 = 8
3 * 1 = 3       3 * 2 = 6       3 * 3 = 9       3 * 4 = 12

sample input2

5 5

sample output2

1 * 1 = 1       1 * 2 = 2       1 * 3 = 3       1 * 4 = 4       1 * 5 = 5
2 * 1 = 2       2 * 2 = 4       2 * 3 = 6       2 * 4 = 8       2 * 5 = 10
3 * 1 = 3       3 * 2 = 6       3 * 3 = 9       3 * 4 = 12      3 * 5 = 15
4 * 1 = 4       4 * 2 = 8       4 * 3 = 12      4 * 4 = 16      4 * 5 = 20
5 * 1 = 5       5 * 2 = 10      5 * 3 = 15      5 * 4 = 20      5 * 5 = 25

Comments

There are no comments at the moment.