Advertisement
VergeoPaw

1038

Sep 19th, 2021
683
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. a,b = input().split()
  2. X = int(a)
  3. Y = int(b)
  4. if X == 1 :
  5.     total = 4*Y
  6.     print("Total: R$ %.2f"%total)
  7. elif X == 2 :
  8.     total = 4.5*Y
  9.     print("Total: R$ %.2f"%total)
  10. elif X == 3 :
  11.     total = 5*Y
  12.     print("Total: R$ %.2f"%total)
  13. elif X == 4 :
  14.     total = 2*Y
  15.     print("Total: R$ %.2f"%total)
  16. elif X == 5 :
  17.     total = 1.5*Y
  18.     print("Total: R$ %.2f"%total)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement