Example : Implement a C code to get the minimum number by using Inline Condition
C code :
1
2
3
4
5
6
7
8
9
10
11
12
| #include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,min;
printf("please enter two intger number\n");
scanf("%d%d",&a,&b);
min=(a>b)?b:a;
printf("The minimum number is %d\n",min);
return 0;
}
|
Output :
0 Comment to "Inline Condition "
Post a Comment