Advertisement
Guest User

Untitled

a guest
May 26th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. ef price(sqft, colours)
  2. if colours <= 2
  3. colourcost = 10 * colours
  4. elsif colours >= 3
  5. colourcost = 15 * colours
  6. end
  7.  
  8. totalcost = ((sqft*15)+ colourcost) * 1.15
  9. puts totalcost
  10. end
  11.  
  12. price(2, 3)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement