The max of three numbers

Report a typo

Write a program that uses the if expression to find the max of three integer numbers. These numbers can be positive, negative or zero.

Use the provided code template.

Sample Input 1:

12
15
11

Sample Output 1:

15
Write a program in Kotlin
fun main() {

val a = readln().toInt()
val b = readln().toInt()
val c = readln().toInt()

println(
if (a > c) {
// put your code here
} else {
// and here
}
)
}
___

Create a free account to access the full topic