Showing posts with label WAP to find out Bigger and Equal number from three numbers (Ternary Operators). Show all posts
Showing posts with label WAP to find out Bigger and Equal number from three numbers (Ternary Operators). Show all posts

BIGGER & EQUAL

WAP to find out Bigger & Equal number from three numbers
(Ternary Operators)

void main ()

{

int a,b,c;

clrscr ();

printf ("Enter the value of A: ");

scanf("%d",&a);

printf ("Enter the value of B: ");

scanf ("%d",&b);

printf ("Enter the value of C: ");

scanf ("%d",&c);

(a>b && a>c)?printf("A is Big"):(b>a && b>c)?printf("B is Big"):(a==b && b==c)?printf("All are Eqaul"):printf("C is Big");

getch ();

}

Labels