Form biggest number

i got my output cleared… but i have a doubt

why we using return a+b>b+a; instead of return a>b;

@chaman9 because a > b doesnt guarantee that a+b is the better choice for example if a = 101 and b = 48, then a+b= 10148 and b+a = 48101, we can see that relationship between a and b is meaningless what matters is a+b and b+a.

okay i got it… thankyou

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.