Saved Bookmarks
| 1. |
Write a program to input three numbers and print the biggest among them with the help of conditionaloperator. |
|
Answer» # include
void main() {
PRINTF("Enter three NUMBERS : ") ;
scanf("%d %d %d", &a, &b, &c) ;
big = a > b ? (a > c ? a : c) : (b > c ? b : c) ;
printf("\nThe biggest number is : %d", big) ; } |
|