Help me in solving SNDMAX problem

My issue

hidden test case failed

My code

#include <stdio.h>

int main() {
	// your code goes here
    int a,b,c,t,i;
    scanf("%d",&t);
    
    while(t--)
    {
    scanf("%d %d %d",&a,&b,&c);
    if(a>b||a>c&&a<c||a<b)
    printf("%d\n",a);
    else
    if(b>a||b>c&&b<c||b<a)
    printf("%d\n",b);
    else
    printf("%d\n",c);

}
    
}


Learning course: Algorithmic Problem Solving
Problem Link: https://www.codechef.com/learn/course/klu-problem-solving/KLUPS00/problems/SNDMAX