# Arup Guha
# 6/9/2022
# For loop building up what it does

# Repeats all the code inside exactly 4 times.
for i in range(4):
    print("hi")
    print("bye")


# Repeats all the code inside exactly 4 times - this time with donations.
total = 0
for i in range(4):

    # Get the next donation.
    donation = int(input("What are you donating?\n"))

    # Add it to our total.
    total = total + donation

    # Print our updated status.
    print("You just donated",donation,"we have collected a total of",total)

# Get # of rows.
n = int(input("How many rows?\n"))

# Version 1 is a triangle small rows first
for i in range(n):

    # Here we print i+1 stars.
    for j in range(i+1):
        print("*", end="")

    # Go to the next line.
    print()

# Divider!
for i in range(n):
    print("-", end="")
print()

# Version 2 is a square
for i in range(n):

    # Here we print n stars.
    for j in range(n):
        print("*", end="")

    # Go to the next line.
    print()

# Divider!
for i in range(n):
    print("-", end="")
print()

# Version 3 is a backwards triangle. (big rows first)
for i in range(n):

    # Here we print n-i stars.
    for j in range(n-i):
        print("*", end="")

    # Go to the next line.
    print()

    
