There is nothing wrong with using if statements or anything else. Is this for a school project or are you just curious? Do you want to compare these two number for equality or to see which is larger, or both? That equation does not make sense.
let A = 4 and B = 6
|4-6| + |6+4| = 12 how does that answer tell you which letter it corresponds to. I see that the answer divided by 2 would give you the highest number, but how would you be able to tell if it was A or B without using if statements?
__________________ \"Today\'s scientists have substituted mathematics for experiments, and they wander off through equation after equation, and eventually build a structure which has no relation to reality.\" Nikola Tesla |