Thursday, May 3, 2012

WAP TO FIND OUT BIGGER NUMBER FROM TWO NUMBERS(TERNARY OPERATORS)


/*****<soeasyprograms.blogspot.in>*****/
#include<stdio.h>
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 ();


}


Output of this Program is :
Dont Forget to give comments







No comments:

Post a Comment