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

PROGRAMMING:Print Yang Hui triangle

Luz5年前 (2021-05-10)题库479
Experiment 5: array
The purpose of this study was to investigate the effects of different factors on the quality of life
1. Master the definition, assignment, input and output methods of one-dimensional array and two-dimensional array.
2. Master the use of character array and string function.
Title Description
Print Yang Hui triangle.
###Input format:
Enter the number of lines to print. 0###Output format:
Output Yang Hui triangle. Note: each number has 6 field widths.
###Input example:
Here is a set of inputs. For example:
```in
five
```
###Output example:
The corresponding output is given here. For example:
```out
one
1 1
1 2 1
1 3 3 1
1 4 6 4 1
```






answer:If there is no answer, please comment