Battery Low | Problem - 51 | Beginner level | C language | CodeChef

Link to the problem statement: codechef.com/submit/BATTERYLOW

Solution: 

#include <stdio.h>

int main(void) {
int t, x;
scanf("%d", &t);
while(t--)
{
    scanf("%d", &x);
    if(x > 15)
        printf("NO\n");
    else
        printf("YES\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