#include<stdio.h>
#include<stdlib.h>
int main()
{
int a,b,c,i,j,largest,largest1,largest2,second,second1,second2,final;
scanf("%d “,&a);
scanf(”%d “,&b);
scanf(”%d ",&c);
if(a>b)
{
largest=a;
second=b;
}
else
{
largest=b;
second=a;;
}
if(b>c)
{
largest1=b;
second1=c;
}
else
{
largest1=c;
second1=b;;
}
if(second>second1)
{
final=second;
}
else
{
final=second1;
}
printf("%d \n",final);
}
ssjgz
2
Please either format your code or (better!) link to your submission - the forum software has mangled it and it won’t compile! 
Also: what Problem are you trying to solve? 
1 Like
For finding the second largest element
i have cleared the test cases but when submitting it shows wrong
ssjgz
5
Also: please link to the actual Problem, so we don’t have t o Google it 
Are you sure you’re making mistake in this problem?
PS: Your solution cannot be seen.
Thank you suman.You helped me man!!