0
Find out greater of two number without using any comparsion in c?
2 Antworten
+ 3
You can try this (python)
a=10
b=1
if a-b == b-a:
print('equal')
elif abs(a-b)==a-b:
print('a bigger')
+ 2
Use the follwoing expression :
((num1 + num2) + abs(num1 - num2)) / 2