Created
April 26, 2020 08:02
-
-
Save gyugyu90/c222575485afdc1295414994e5d5a164 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 printSum(a: Int, b: Int): Unit { // Unit은 생략 가능 | |
println("sum of $a and $b is ${a + b}") | |
} | |
fun main() { | |
printSum(-1, 8) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment