Second Largest | CodeChef

cook your dish here

t=int(input())
if t>0:
for x in range(1,t+1):
a=int(input())
b=int(input())
c=int(input())
x=max(a,b,c)
z=min(a,b,c)
if x==a and z==b:
print©
elif x==b and z==c:
print(a)
else:
print(b)

Please either format your code or link to your submission - the forum software has mangled it and it won’t compile! :slight_smile:

what’s wrong in it…

software puts newline and others thing that i don’t understand,so it becomes incorrect respective to c++.