Created
June 27, 2015 04:42
-
-
Save wakwak3125/bed4f827a257159b82c6 to your computer and use it in GitHub Desktop.
ナベアツをKotlinで…
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
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