Ashies

HACKERRANK P3

Aug 20th, 2017
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. c=input()
  2. ti=input()
  3. t=input()
  4.  
  5. t=float(t)
  6. ti=float(ti)
  7. c=float(c)
  8.  
  9. x=c+(c*(ti/100))+(c*(t/100))
  10. x=round(x)
  11. x=str(x)
  12. print("The total meal cost is " + x + " dollars.")
Add Comment
Please, Sign In to add comment