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
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
0
Explanation:
use \n and\t friend.....
Similar questions
English,
2 months ago
English,
2 months ago
Social Sciences,
2 months ago
Math,
4 months ago
English,
4 months ago
Social Sciences,
10 months ago
Social Sciences,
10 months ago