LordKelechi / Day-1-on-Replit-100

My first day learning how to code using Python.
0 stars 0 forks source link

Day 10 on Replit #6

Open LordKelechi opened 5 months ago

LordKelechi commented 5 months ago

print("Tip Calculator ") print() spend = float(input("How much did you spend? ")) percentage = int(input("What percentage do you want to tip? ")) groupPeople = int(input("How many people in your group? ")) owe = spend / groupPeople owe = round(owe, 2) print("You each owe", owe) tip = spend * percentage / 100 tip = round(tip, 2) print("The tip is", tip)