Problem1212--C语言7.13

1212: C语言7.13

Time Limit: 1 Sec  Memory Limit: 32 MB
Submit: 33  Solved: 16
[Submit] [Status] [Web Board] [Creator:]

Description

输出杨辉三角形的前n行。

Input

第一行有一个正整数n,保证n不超过20。

Output

共有n行,从第1行至第n行,每行输出与行数相等个数的整数,整数后输出一个空格。
请注意行尾输出换行。

Sample Input Copy

6

Sample Output Copy

1 
1 1 
1 2 1 
1 3 3 1 
1 4 6 4 1 
1 5 10 10 5 1 

Source/Category