#1406. 打印杨辉三角
打印杨辉三角
说明
输入一个整数n (0<=n<=20) ,输出n行的杨辉三角。
【输入样例】
8
【输出样例】
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 20 15 6 1
1 7 21 35 35 21 7 1
样例
Statistics
Related
In following homework:
输入一个整数n (0<=n<=20) ,输出n行的杨辉三角。
【输入样例】
8
【输出样例】
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1
1 6 15 20 15 6 1
1 7 21 35 35 21 7 1
In following homework:
By signing up a 战码少年-战码青少年编程(专业信息学奥赛编程训练) universal account, you can submit code and join discussions in all online judging services provided by us.