C Program Find Largest of Three Using Ternary Operator
Find Largest of Three Using Ternary Operator: C Program Find Largest of Three #include <stdio.h> int main() { int n1, n2, n3, max; printf(“Enter first number=”); scanf(“%d”,&n1); printf(“Enter second number=”); scanf(“%d”,&n2); printf(“Enter third number=”); scanf(“%d”,&n3); max = (n1 > n2) ? (n1 > n3 ? n1 : n3) : (n2 > n3 ? n2 :… Read More »