Maximum of two numbers using conditional operators

#include<stdio.h>
int main() {
    int x,y,max;
    scanf("%d%d",&x,&y);
    max=x>y?x:y;
    printf("Maximum is %d",max);
   
return 0; 
}

No comments:

Post a Comment