Problem2224--C Programming Sit: Recursion

2224: C Programming Sit: Recursion

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

Description

Write a RECURSIVE C function, void printTriangle(int n), to print the following pattern (illustrated for n=4), for 1 n 9. 1 22 333 4444 Write a main function that accepts the value of n for 1 n 9, and calls the printTriangle function.

Input

The integer value of n

Output

The pattern illustrated in the above

Sample Input Copy

5

Sample Output Copy

1
22
333
4444
55555

Source/Category

265