Max

Report a typo

Write a program that reads two large numbers and finds the larger one between them.

Try to do this with the following formula: max(a,b)=a+b+ab2max(a, b) = \frac{a + b + |a - b|}{2}

Sample Input 1:

2
3

Sample Output 1:

3
Write a program in Kotlin
fun main() {
// write your code here

}
___

Create a free account to access the full topic