please tell the lines for this pattern in python
Attachments:
Answers
Answered by
0
Answer:
please mark me as brainliest
Explanation:
rows = int(input("Enter the number of rows: "))
# the outer loop is executing in reversed order
for i in range(rows + 1, 0, -1):
for j in range(0, i - 1):
print("*", end=' ')
print(" ")
Output:
Enter the number of rows: 5
* * * * *
* * * *
* * *
* *
*
Similar questions
Business Studies,
24 days ago
English,
24 days ago
History,
1 month ago
Social Sciences,
9 months ago