The largest element

Report a typo

You have a sequence of integer numbers that ends with 0. Find the largest element of this sequence.

0 is not included in the sequence. It serves only as a sign of the sequence end.

Sample Input 1:

1
7
9
0

Sample Output 1:

9
Write a program in Kotlin
fun main() {
// put your code here
}
___

Create a free account to access the full topic