Advertisement
Guest User

Tip calculator 12%

a guest
Jun 27th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. meal = float(input("How much was your meal?"))
  2. tip = .12
  3. meal = meal * tip
  4. total = meal + meal * tip
  5.  
  6. print ("Your tip is %s" % meal)
  7. print ("Your total is %s" % total)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement