Completely Solved C, C++ Programs Assignment.




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

Filed Under:

Problem 21. 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();
}

C compiler: gcc 4.1.2

  Back to main directory: Sample C Program | Software Practical | Solved C Assignment


Get Free Programming Tutorials and Solved assignments