1767: 【CSP嵌套循环】请输出n行的9*9乘法表▅

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:5 Solved:5

Description

请从键盘读入一个整数 lns="http://www.w3.org/1998/Math/MathML">n ,代表有 lns="http://www.w3.org/1998/Math/MathML">n 行,输出 lns="http://www.w3.org/1998/Math/MathML">n 行的9*9乘法表。
比如,假设 lns="http://www.w3.org/1998/Math/MathML">n=5 ,则输出如下:

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

Input

一个整数 lns="http://www.w3.org/1998/Math/MathML">nn9 

Output

n 行的 lns="http://www.w3.org/1998/Math/MathML">9×9 乘法表。

Sample Input Copy

3

Sample Output Copy

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