Pattern numbers & stars - 1

i have printed the no pattern but unable to merge star pattern in it

Can you please share your code using coding blocks ide online?

https://online.codingblocks.com/app/player/54949/content/26852/5027

rows = input()
rows = int (rows)

for i in range (rows,0,-1):
for j in range(1, i + 1):
print(j, end=’ ')

print("\r")

You just need to add another for loop to print stars pattern.

Here’s how you can do that, I just addded three lines of code in your code.

Happy Learning :blush:

thank u:relaxed: i could not think that