C Program To Find Greatest Number Among Three
Greatest number among the three number
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,big;
printf("Enter the three number a,b,c");
scanf("%d%d%d",&a,&b,&c);
big= (a>b)?((a>c)?a:c):((c>b)?c:b);
printf("The largest number is:%d",big);
getch();
}
_____________________________________________
Comments
Post a Comment
DON'T COMMENT LINK.