Write a C-program to print max number using ternary operator?
Write a C-program to print max number using ternary operator?
Write a C-program to print max number using ternary operator
#include <stdio.h>
int main() {
int x,y;
printf("Enter x,y values");
scanf("%d%d",&x,&y);
x>y ? printf("x is max Number") : printf("y is max Number");
return 0;
}