Skip to content

Instantly share code, notes, and snippets.

@wakwak3125
Created June 27, 2015 04:42
Show Gist options
  • Save wakwak3125/bed4f827a257159b82c6 to your computer and use it in GitHub Desktop.
Save wakwak3125/bed4f827a257159b82c6 to your computer and use it in GitHub Desktop.
ナベアツをKotlinで…
fun main(args : Array<String>) {
for(num in 1..40){
val aho1 = num % 3 == 0
val aho2 = num.toString().contains("3")
val result = if (aho1 || aho2){
"アホ"
} else{
num
}
println(result)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment