The max of two numbers without else-branch

Report a typo

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

Be creative, solve the problem without else branch :)

Use the provided code template, print the max.

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