Check which is greater using a formula in python [closed]

-4

I need to use this formula and read three values and present the highest of the three values read. Formula:

MaiorAB = (a+b+abs(a-b))/2

The three values are on the same receiving line. EX:

MaiorAB = input().split(' ')

Where and how can I use this formula?

    
asked by anonymous 22.08.2017 / 15:48

1 answer

3

What about:

a = int(input('a: '));
b = int(input('b: '));
c = int(input('c: '));

maior = max( a, b, c );

print(maior);

repl.it

    
22.08.2017 / 16:10