| |
Program to find the greatest of 3 numbers
/*to find the greatest of 3 numbers*/
main()
{
int a,b,c,big;
clrscr();
printf("\nEnter 3 values :");
scanf("%d%d%d",&a,&b,&c);
if (a>b && a>c)
big=a;
else if (b>c)
big=b;
else
big=c;
printf("\nBiggest : %d",big);
getch();
}
Please send comments to vgdarur.javafive@blogger.com
|