Algorithm of largest of 3 numbers using ternary operator
Answers
Answered by
4
Answer:
plz mark as brainliest.........xD
Attachments:
Answered by
0
Answer:
- ☑ # 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
Physics,
5 months ago
English,
5 months ago
Geography,
5 months ago
Computer Science,
10 months ago
Biology,
1 year ago