print("Star patterns \n")
Rows = int(input("Enter,How meany rows you want to print: "))
bulean_value = input("Enter 1 or 0: ")
if bulean_value == "1":
for i in range(0,Rows+1):
print("*"*i)
elif bulean_value == "0":
for i in range(Rows,0,-1):
print("*"*i)