Problem1192--数字金字塔

1192: 数字金字塔

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 0  Solved: 1
[Submit] [Status] [Web Board] [Creator:]

Description

本题要求实现函数输出n行数字金字塔。 函数接口定义: void pyramid( int n ); 其中n是用户传入的参数,为[1, 9]的正整数。要求函数按照如样例所示的格式打印出n行数字金字塔。注 意每个数字后面跟一个空格。 裁判测试程序样例: #include void pyramid( int n ); int main() { int n; scanf(

Input

其中n是用户传入的参数,为[1, 9]的正整数

Output

其中n是用户传入的参数,为[1, 9]的正整数

Sample Input Copy

5

Sample Output Copy

1 
   2 2 
  3 3 3 
 4 4 4 4 
5 5 5 5 5

Source/Category