Created
August 14, 2019 17:59
-
-
Save rail-rate/6e8d801865af1f4ffd749b08c521b171 to your computer and use it in GitHub Desktop.
main外2
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>) { | |
val teki = kaisinnoichigeki(10) | |
println("${teki}のダメージ") | |
} | |
fun kaisinnoichigeki(a : Int) : Int = a + 5 //短縮したが先ほどと同じ内容です。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment