Created
November 28, 2018 23:53
-
-
Save cassiozen/bb0377f02f564c9912d989b6137e97ad to your computer and use it in GitHub Desktop.
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
when(selectedFruit) { | |
"orange" -> print("Oranges are 59 cents a pound.") | |
"apple" -> print("Apples are 32 cents a pound.") | |
"cherry" -> print("Cherries are one dollar a pound.") | |
"mango", "papaya" -> print("Mangoes and papayas are 3 dollars a pound.") | |
else -> print("Sorry, we are out of $selectedFruit.") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment