Accept two integers X and Y as the input. The program must print the larger integer as the output.
Example Input/Output:
Input:
12 15
Output:
15
#include<stdio.h>
int main()
{
int X, Y;
scanf("%d %d", &X, &Y);
if(X > Y){
printf("%d", X);
}
else{
printf("%d", Y);
}
return 0;
}

Leave a Reply