The max of two numbers without else-branch

Report a typo

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

Be creative and solve the problem without an else branch :)

Use the provided code template and print the maximum.

Sample Input 1:

8
11

Sample Output 1:

11
Write a program in Kotlin
fun main() {

val a = readLine()!!.toInt()
val b = readLine()!!.toInt()

// put your code here
}

Create a free account to access the full topic