首页 > 试题广场 >

There are two int variables: a

[问答题]
There are two int variables: a and b, don’t use “if”, “? :”, “switch”or other judgement statements, find out the biggest one of the two numbers.
推荐
答案:( ( a + b ) + abs( a - b ) ) / 2
编辑于 2015-02-09 11:11:25 回复(0)