C Program to find biggest of two no by using ternary numbers

CWC
0 Min Read

C Program to find biggest of two no by using ternary numbers

 

# include <stdio.h>
# include <conio.h>
main( )
{
int a,b,big;
clrscr( );
printf(“enter value a”);
scanf(“%d”,&a);
printf(“enter the value of b”);
scanf(“%d”,&b);
big=(a>b)?a:b;
printf(“biggest of the given numbers IS
%d”,big);
getch();
}

 

Save

Save

Share This Article
Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

English
Exit mobile version