write a c program using ternary operator Yatendra AwanaJul 21, 20211 min read#include<stdio.h>void main(){ int a,b,max; printf("Enter values for a and b :"); scanf("%d%d",&a,&b); max = a>b ? a : b; /*ternary operator*/ printf("Larger of %d and %d is %d\n",a,b,max); getch();}
#include<stdio.h>void main(){ int a,b,max; printf("Enter values for a and b :"); scanf("%d%d",&a,&b); max = a>b ? a : b; /*ternary operator*/ printf("Larger of %d and %d is %d\n",a,b,max); getch();}
Master Excel SUMIF, AVERAGEIF, COUNTIF, AND, OR Formulas ExplainedUnlock the power of Excel with this comprehensive tutorial covering essential formulas like SUMIF, AVERAGEIF, COUNTIF, AND, and OR.
Comments