Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. if (price < 11){
  2. price= price * 50;
  3. } else if (price < 21){
  4. price= (price-10) * 40 + 10*50;
  5. } else {
  6. price= (price-30) * 30 + 10*50 +10*40;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement