i have printed the no pattern but unable to merge star pattern in it
Pattern numbers & stars - 1
Can you please share your code using coding blocks ide online?
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
thank u:relaxed: i could not think that