Created
May 1, 2021 17:08
-
-
Save balsikandar/c8e9136a5af1ac2db581e3cac5698047 to your computer and use it in GitHub Desktop.
This file contains 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
getCurrencyNameOf("UK") | |
fun getCurrencyNameOf(country: String): String { | |
return if (country == "India") { | |
"Rupee" | |
} else if (country == "USA") { | |
"Dollars" | |
} else if (country == "UK") { | |
"Euro" | |
} else if (country == "Japan") { | |
"Yen" | |
} else if (country == "China") { | |
"Yuan" | |
} else { | |
"NA" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment