C Program to find the Largest Number using Ternary Operator | Ternary Operators in C | Ternary Operator Example in C | C Program to Find Biggest number out of given 3 numbers
#includevoid main() { int a,b,c,big; printf("\n Enter 3 numbers:\n"); scanf("%d %d %d",&a,&b,&c); big=(a> b&&a> c?a:b> c?b:c); printf("\n The biggest number is: %d",big); getch(); }
No comments:
Post a Comment