Computer Science, asked by durgamsrivarsha31, 5 months ago


Design a C program to find greatest of
three numbers
Using condational operator​

Answers

Answered by ALLWIN801
4
  1. Biggest Of Three Numbers Using Conditional operator/Ternary Operator in C
  2. # include <stdio.h>
  3. void main()
  4. {
  5. int a, b, c, big ;
  6. printf("Enter three numbers : ") ;
  7. scanf("%d %d %d", &a, &b, &c) ;
  8. big = a > b ? ( a > c ? a : c) : (b > c ? b : c) ;
  9. printf("\nThe biggest number is : %d", big) ;
Similar questions