#include<conio.h>
#include<stdio.h>
main()
{
int a,b,c;
clrscr();
printf("enter your first value:");
scanf("%d",&a);
printf("enter your second value:");
scanf("%d",&b);
printf("enter your third value:");
scanf("%d",c);
if(a>b && a>c)
{
printf("first value is greater");
}
else if(b>a&&b>c)
{
printf("2nd value is greater");
}
else if(c>a&&c>b)
{
printf("third value is greater");
}
getch();
Code runs successfully but it shows wrong output
for example i enter
a=30
b=29
c=28
it output" third value is greater"
Please help