to find largest of 3 numbers

i am not getting my answer for finding largest of 3 numbers can someone correct this code judge says wrong answer

include<stdio.h>

int main()
{
int a,b,c,big;
scanf("%d %d %d",&a,&b,&c);
big=(a>b&&a>c?a:b>c?b:c);
printf("%d",big);
}

The Code is Correct, just add a statement return 0 at the last line of program.
#include <stdio.h>

int main(void) {
int a,b,c,big;
scanf("%d %d %d",&a,&b,&c);
big=(a>b&&a>c?a:b>c?b:c);
printf("%d",big);
return 0;
}

1 Like

int main()

{

int a,b,c,big;

scanf("%d %d %d",&a,&b,&c);

big=(a>b&&a>c?a:b>c?b:c);

printf("%d",big);

return 0;
}

#include<stdio.h>
int main()
{int a,b,c,big;
scanf("%d%d%d",&a,&b,&c);
big=(a>b&&a>c?a:b>c?b:c);
return(big);
}

#include<stdio.h>
void main()
{
int a=0;
int b=0;
int c=0;
printf(“enter numbrers”);
scanf("%d",&a);
scanf("%d",&b);
scanf("%d",&c);
if(a>b)
{
if(a>c)
{
printf("%d the largest",a);

}
else
{
printf("%d the largest",c);
}
}
else if(b>c)
{


printf("%d the largest",b);
}
else
{
printf("%d the largest",c);
}
}

#include<bits/stdc++.h>
using namespace std;
int max(int a,int b){return a>b?a:b;}
int main()
{
int a,b,c;
cin>>a>>b>>c;
cout<<“max=”<<max(a,max(b,c));
return 0;
}

//