The sum of three numbers

Report a typo

Write a function named sum that takes three integer numbers and returns their sum.


Use the provided code template.

Sample Input 1:

8
11
2

Sample Output 1:

21
Write a program in Kotlin
// write your function here

fun main() {
val a = readLine()!!.toInt()
val b = readLine()!!.toInt()
val c = readLine()!!.toInt()

println(sum(a, b, c))
}
___

Create a free account to access the full topic