Program to find biggest of two no by using ternary numbers - 100 Most Important C# Programs

100 Most Important C# Programs

21. Program to find biggest of two no by using ternary numbers

Code:

# 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();

}