Who is taller! | Problem - 7 | Beginner level | C language | CodeChef
Link to the problem statement: https://www.codechef.com/submit-v2/TALLER Solution:
#include <stdio.h>
int main(void) {
int t, x, y, i;
scanf("%d",&t);
for(i=0;i<t;i++)
{
scanf("%d %d", &x, &y);
if(x>y)
{
printf("A\n");
}
else
{
printf("B\n");
}
}
return 0;
}
You can watch the video solution of this problem:
Hope this will help you, if you want anything else leave a comment.
Thank you
Comments
Post a Comment