#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf(“enter any three numbers : “);
scanf(“%d%d%d”,&a,&b,&c);
if(a>b)
{
if(a>c)
{
printf(“%d is greatest number”,a);
}
else
{
printf(“%d is the greatest number”,c);
}
}
else if(b>a)
{
if(b>c)
{
printf(%d is the greatest number”,b);
}
else
{
printf(“%d is the greatest number”,c);
}
}
getch();
}
Comments