Lembas

Report a typo

Sam and Frodo decided to count how much bread they had. To do this, they created a function totalLembas that counts how much bread they have in total.

Your task is to invoke the function totalLembas; pass breadFromFrodo and breadFromSam as arguments.

Sample Input 1:

2
3

Sample Output 1:

5
Write a program in Kotlin
// This is the totalLembas() function. It just counts the total number of lembas.
// Do not change this code
fun totalLembas(first: String, second: String) {
print(first.toInt() + second.toInt())
}

fun main() {
val breadFromFrodo = readln()
val breadFromSam = readln()

// write your code here

}
___

Create a free account to access the full topic