Pattern : Triangle of Numbers

5

1 votes
Easy
Problem

Print the following pattern for the given number of rows

Pattern for N=3
    1
  232
34543

Input format -
Integer N (Total Number of rows)

Output Format :
Pattern in N lines


Sample Input :
5
Sample Output:
        1
      232
    34543
  4567654
567898765

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?