FIND THE BIGGEST VALUE OF 2 NUMBERS
#include<stdio.h> //header file stdio.h
#include<conio.h> //header file conio.h
main() //main() function
{ //start of the program
int a=10,b=15,big; //variable declaration
big=(a>b)?a:b; //conditional operator
printf("biggest number =%d",big);
getch();
} //end of the program
#include<stdio.h> //header file stdio.h
#include<conio.h> //header file conio.h
main() //main() function
{ //start of the program
int a=10,b=15,big; //variable declaration
big=(a>b)?a:b; //conditional operator
printf("biggest number =%d",big);
getch();
} //end of the program
No comments:
Post a Comment