1.

Write a program to input three numbers and print the biggest among them with the help of conditionaloperator.​

Answer»

ANSWER:

# include

void main()

{

INT a, B, c, big ;

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

}



Discussion

No Comment Found

Related InterviewSolutions