Age Limit | Problem - 19 | Beginner level | C language | CodeChef

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


Solution: 

#include <stdio.h>

int main(void) {
int t, a, x, y, i;
scanf("%d", &t);
for(i=0;i<t;i++)
{
    scanf("%d %d %d", &x, &y, &a);
    if(a>=x && a<y)
        printf("YES\n");
   else
        printf("NO\n");
}
return 0;
}


Hope this will help you, if you want anything else leave a comment.

Thank you

Comments

Popular posts from this blog

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

Implementing linked list in C language