Skip to content

Instantly share code, notes, and snippets.

@rail-rate
Created August 14, 2019 17:59
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 rail-rate/6e8d801865af1f4ffd749b08c521b171 to your computer and use it in GitHub Desktop.
Save rail-rate/6e8d801865af1f4ffd749b08c521b171 to your computer and use it in GitHub Desktop.
main外2
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