Advertisement
Guest User

Untitled

a guest
Feb 18th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Variable total_cost
  2. Variable discount = 0
  3.  
  4. If total_cost >= 200
  5. Then discount = 10
  6. Else if total_cost >= 100
  7. Then discount = 5
  8.  
  9. If discount is 0
  10. Then print "You don't get a discount"
  11. Else if discount > 0
  12. Then print "Your discount is " + discount " percent. Your total cost is " + total_cost - (total cost * (discount / 100))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement