Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Як у Kotlin оголосити функцію, яка приймає два цілі числа і повертає їх суму?
int add(int a, int b) { return a + b }
def add(a: Int, b: Int): Int { return a + b }
fun add(a: Int, b: Int): Int { return a + b }
fun add(a: Int, b: Int) = a + b
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!