I have to find maximum of three number provided by user but with some restrictions. Its not allowed to use any conditional statement. I tried using ternary operator like bel
You can use this code to find largest out of two:
max{a,b} = abs(a-b)/2 + (a+b)/2
then use it again to find the third number:
max{a,b,c} = max(a,max(b,c))
See that this works for positive numbers you can change it to work for negative as well.