5874: K6-3-1 打印字符三角形

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:2 Solved:2

Description

  编写一个函数 print (n,ch),表示打印一行 n 个英文字母 ch,并换行。然后,在函数 main() 中输入 n 和 ch,调用函数 print() 打印一个字符三角形。

Input

一行一个整数 n 和一个英文字母 ch,之间用一个空格隔开,1≤n≤20。

Output

n 行,第 i 行有 i 个字母 ch。

Sample Input Copy

3 a

Sample Output Copy

a
aa
aaa