#include <stdio.h>
#include <conio.h>
void main()
{
int a,b,c;
printf("Enter the three Number=");
scanf("%d%d%d",&a,&b,&c);
if (a>b)
{
if (a>c)
{
printf("A is greater number");
}
else
{
printf("C is greater number");
}
}
else
if(b>c)
{
printf("B is greater number");
}
else if (a==b && a==c)
{
printf("Numbers are equal");
}
else
{
printf("C is greater number");
}
getch();
}
Output :-
0 comments:
Post a Comment