Skip to content

Instantly share code, notes, and snippets.

@gyugyu90
Created April 26, 2020 08:02
Show Gist options
  • Save gyugyu90/c222575485afdc1295414994e5d5a164 to your computer and use it in GitHub Desktop.
Save gyugyu90/c222575485afdc1295414994e5d5a164 to your computer and use it in GitHub Desktop.
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