/* program to print the highest value among three input numbers*/
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf("Enter three values");
scanf("%d%d%d", &a,&b,&c);
if(a>b && b>c)
printf(" a=%d is highest value", a);
else if(b>a && b>c)
printf("b=%d is the highest value",b);
else
printf(c=%d is the highest value",c);
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
printf("Enter three values");
scanf("%d%d%d", &a,&b,&c);
if(a>b && b>c)
printf(" a=%d is highest value", a);
else if(b>a && b>c)
printf("b=%d is the highest value",b);
else
printf(c=%d is the highest value",c);
getch();
}