#
# This program finds the product of five numbers (using for loop),
# and user can run this calculation as many times as he/she wants
# (without re-running the program) for different inputs.
def main():
print("This program finds the product of five given values.")
answer = "y"
while answer[0] == "y":
p = 1
for i in range(5):
n = float(input("Enter the next value:"))
p *= n
print("Their product is",p)
answer = input("Do you want to do it again? (Enter yes or no)").lower()
print("Have a good day!")
main()