Posted by: Dilbar June 28, 2010
Login in to Rate this Post:
0
?
could anyone help with this problem please
int median3(int a,int b,int c);
which returns the second largest number x, among sequence (a,b,c).
For example:
- for median3(4, 2, 6) the correct answer is 4,
- for median3(1, 2, 2) the correct answer is 2.