Computer Science, asked by dasmdas, 11 months ago

Write a program to accept 3 numbers and find the highest
using ternary operator​

Answers

Answered by Jagjeetdas
1

# include <stdio.h>

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

Similar questions