Advertisement
bacnguyenxgen

Untitled

Sep 23rd, 2022
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. def main():
  2.     dollars = dollars_to_float(input("Bữa ăn có giá bao nhiêu? "))
  3.     percent = percent_to_float(input("Tỉ lệ phần trăm bạn muốn boa là bao nhiêu? "))
  4.     tip = dollars * percent
  5.     print(tip)
  6.  
  7.  
  8. def dollars_to_float(d):
  9.     # TODO
  10.  
  11.  
  12. def percent_to_float(p):
  13.     # TODO
  14.  
  15.  
  16. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement