Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
855 B
6
Indexable
Never
while True:
  burger = 0.99
  fries = 0.79
  soda = 1.09
  burger_num = 0
  fries_num = 0
  soda_num = 0

  print("Enter 1 for Yum Yum Burger")
  print("Enter 2 for Grease Yum Fries")
  print("Enter 3 for Soda Yum")

  enter = int(input("Enter now -> "))

  if enter == 1:
    burger_amount = int(input("Enter the number of burger you want: "))
    burger_num += burger_amount
  elif enter == 2:
    fries_amount = int(input("Enter the number of fries you want: "))
    fries_num += fries_amount
  else:
    soda_amount = int(input("Enter the number of soda you want: "))
    soda_num += soda_amount

  des = input("Do you want to end program? (yes/no): ")
  last_des = des.lower()
  if last_des == "yes":
    price = (burger * burger_num) + (fries * fries_num) + (soda * soda_num)
    print("THe total price is $", price)
    break

  else:
    continue