-->
当前位置:首页 > 题库

PROGRAMMING:multiplication table

Luz5年前 (2021-05-10)题库542
Using nested loop to realize multiplication table, the scale of multiplication table is no longer fixed × 9, but dynamic n × N size.
###Input format:
Enter a positive integer n.
###Output format:
Output n × The result of each equation in the N multiplication table is enough * * there is a space after each number. After each line is output, you need to enter and wrap * *. See the example for details.
###Input example:
Here is a set of inputs. For example:
```in
seven
```
###Output example:
The corresponding output is given here. For example:
```out
one
2 4
3 6 9
4 8 12 16
5 10 15 20 25
6 12 18 24 30 36
7 14 21 28 35 42 49
```







answer:If there is no answer, please comment