#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 Same Element %d",a);
exit(0);
}
if(a>b)
biggest=a;
else
biggest=b;
if(biggest>c)
printf("BIGGEST Number Among %d %d %d is %d",a,b,c,biggest);
else
printf("BIGGEST Number Among %d %d %d is %d",a,b,c,c);
}
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 Same Element %d",a);
exit(0);
}
if(a>b)
biggest=a;
else
biggest=b;
if(biggest>c)
printf("BIGGEST Number Among %d %d %d is %d",a,b,c,biggest);
else
printf("BIGGEST Number Among %d %d %d is %d",a,b,c,c);
}
![]() |
| output |

No comments:
Post a Comment