Files
C-Projects/MaximumNo.c
2021-04-25 15:28:50 +05:30

10 lines
230 B
C

// WAP to find maximum number using conditional operator.
void main() {
int a,b,max;
printf("Enter the two numbers\n");
scanf("%d%d",&a,&b);
max=(a>b)?a:b;
printf("Maximum between %d and %d is %d",a,b,max);
}