Computer Science, asked by jonastomson26, 4 months ago

python question

Write a program to print the following pattern:
5 5 5 5 5
5 5 5 5
5 5 5
5 5
5​

Answers

Answered by Aera2542
2

Answer:

sry I know code for this only

55555

5555

555

55

5

rows = 5

num = rows

for i in range(rows, 0, -1):

for j in range(0, i):

print(num, end=' ')

print("\r")

Answered by GowthamiGopan
0

Explanation:

use \n and\t friend.....

Similar questions