Last active
July 19, 2016 21:44
-
-
Save kaiguogit/a98199f8e2387a966f8a5b08f0795e07 to your computer and use it in GitHub Desktop.
Sign Quote
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_quote(dimensions, colour) | |
(dimensions * 15 + (colour > 2 ? colour * 15 : colour * 10))*1.15 | |
end | |
puts "#{get_quote(10, 3)}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment