Skip to content

Instantly share code, notes, and snippets.

@balsikandar
Created May 1, 2021 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save balsikandar/c8e9136a5af1ac2db581e3cac5698047 to your computer and use it in GitHub Desktop.
Save balsikandar/c8e9136a5af1ac2db581e3cac5698047 to your computer and use it in GitHub Desktop.
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