// Compiler : Dev-C++4.9.9.2
#include<stdio.h>
int main()
{
float a,b,c;
printf("A: ");
scanf("%f",&a);
printf("\nB: ");
scanf("%f",&b);
printf("\nC: ");
scanf("%f",&c);
if (a>b && b>c)
printf("A is Greater");
else if (b>c && b>a)
printf("B is Greater");
else if(c>b && c>a)
printf("C is Greater");
else if (a==b && b>c)
printf("A = B > C");
else if (b==c && c>a)
printf("B = C > A");
else if (a==c && c>b)
printf("A = C > B");
else if (a==b && b==c)
printf("All Are Equal");
else if(a==b && b<c)
printf("A = B < C");
else if(a==c && a<b)
printf("A = C < B");
else if(b==c && c<a)
printf("B = C < A");
getch();
return 0;
}
Post a Comment