Roller Coaster | Problem - 8 | Beginner level | C language | CodeChef

Link to the problem statement: https://www.codechef.com/submit-v2/MINHEIGHT

Solution: 

#include <stdio.h>

int main(void) {
    int t, x, h, i;
scanf("%d", &t);
for(i=0;i<t;i++)
{
    scanf("%d %d", &x, &h);
    if(x>=h)
    {
        printf("YES\n");
    }
    else
    {
        printf("NO\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

Popular posts from this blog

The Cheaper Cab | Problem - 18 | Beginner level | C language | CodeChef

My very 1st contest! | Problem - 1 | Beginner level | C language | CodeChef