i know it is a trivial question but i am not able to make solution for it . if somebody can help by letting me know where i am lagging then it will be helpful. my code is
public static void main (String[] args) throws java.lang.Exception
{
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
int[]arr = new int[n];
for(int i = 0; i<n; i++){
int a = scn.nextInt();
int b = scn.nextInt();
int c = scn.nextInt();
if(a>b){
System.out.println(b>c ? b: c);
continue;
}
else if(b>c){
System.out.println(c>a ? c: a);
continue;
}
else if(c>a){
System.out.println(a>b ? a:b);
continue;
}
}
}