Number Pattern.py

Level EASY
Pattern for N = 4
1234
123
12
1
Input format :
Integer N (Total no. of rows)
Output format :
Pattern in N lines
Sample Input :
5
Sample Output :
12345
1234
123
12
1


## Read input as specified in the question.
## Print output as specified in the question.
num = int(input())
for i in range(0,num):
for j in range(1,num+1-i):
print(j,end="")
print()

Comments

Popular posts from this blog

MySQL Multi Source Master Slave Replication using GTID

Access and modify all the resources of our Wiki.js using WikiJS API

How to setup an Nginx reverse proxy with a SSL certificate in XWIKI