Created
August 15, 2019 08:27
-
-
Save rail-rate/95ec7102451a6375a12860ed84e842df to your computer and use it in GitHub Desktop.
main外7
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>) { | |
printShow(5, 10) | |
printShow(1, 2) | |
} | |
fun printShow(a : Int, b : Int) : Unit{ //: Unitは書かなくても同じ意味になるので省略可能 | |
println(a * b) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment