Saturday, 27 July 2013

C-Program To Find Biggest among Three numbers using Conditional Operator

#include<stdio.h>
main ()
{
int a,b,c,biggest;
printf("Enter the three Numbers\t");
scanf("%d%d%d",&a,&b,&c);
if((a==b)&&(b==c))
{
printf("You Entered The Identical Number %d",a);
exit(0);
}
biggest=(a>b?a:b);
biggest=(biggest>c?biggest:c);
printf("BIGGEST Number Among %d %d %d is %d",a,b,c,biggest);
}






sakoncepts.blogspot.com
output

No comments:

Post a Comment