Tuesday, August 28, 2007

BIGGER NUMBER 2

WAP to find out Bigger number from two numbers
(Ternary Operators)

void main ()

{

int a,b;

clrscr ();

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

scanf("%d",&a);

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

scanf ("%d",&b);

(a>b)? printf ("A is Big"):printf("B is Big");

getch ();

}


No comments:

Post a Comment