please help me find the error in below program.
Form Biggest Number
replace line 7 with
return a+b > b+a;
but what’s mistake in this?
the relation u are using is wrong
a > b is wrong
eg {90,9}
90 > 9
so o/p would be 909
for the output stirng
but this is not the biggest number
so
a combination of a+b and b+a must be checked and the greater needs to be returned
here a = 90 b = 9
a+b == 909
b+a == 990
hence 990 being the bigger one must be returned to form the biggest number