LearnPy Hub
← Operators problems
Medium

Larger Without if

Read two integers and print the larger one using only arithmetic: (a + b + abs(a - b)) // 2.

Input

Two integers.

Output

One integer.

Sample 1

Input
3
9
Output
9

Sample 2

Input
10
2
Output
10
solution.py
Output appears here
Larger Without if · Python practice problem · LearnPy Hub