Create a function called sum5 that can sum from 2 to 5 numbers.
Default arguments
Summation
Report a typo
Sample Input 1:
8 11Sample Output 1:
19Write a program in Kotlin
fun sum5(a1: Int, a2: Int, a3: Int, a4: Int, a5: Int): Int {
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.