Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Variable total_cost
- Variable discount = 0
- If total_cost >= 200
- Then discount = 10
- Else if total_cost >= 100
- Then discount = 5
- If discount is 0
- Then print "You don't get a discount"
- Else if discount > 0
- 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