Given three distinct numbers, find the number with value in middle (Try to do it with minimum comparisons).
First line contains an integer, the number of test cases 'T'. Each test case should contain three distinct numbers a, b and c.
Print middle of three numbers.
1 <= T <= 100
-1000 <= a, b, c <= 1000
20 30 40
12 32 11
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.