#include<conio.h>
void main (void)
{
int a,b,c;
clrscr();
printf("\n\nEnter the first number : ");
scanf("%d",&a);
printf("\n\nEnter the second number : ");
scanf("%d",&b);
printf("\n\nEnter the third number : ");
scanf("%d",&c);
if(a>b && a>c)
{printf("\n\n\t\t\t\t\tFirst number is greatest in all");}
else if(b>a && b>c)
{printf("\n\n\t\t\t\t\tsecond number is greatest in all");}
else if(c>a && c>b)
{printf("\n\n\t\t\tThird number is greatest in all");}
else
{printf("\n\n\t\t\tAll numbers are equal");}
getch();}
No comments:
Post a Comment