Help me in solving NEWSPAPER problem

My issue

what’s wrong?

My code

#include <stdio.h>

int main(void) {
	// your code goes here
	int c;
	scanf("%d",&c);
	if(c>=7&&c<=10){
	    printf("YES");
	}
	else{
	    printf("NO");
	}

}


Problem Link: Sports Section Practice Coding Problem - CodeChef

#include <stdio.h>

int main(void) {
	// your code goes here
	int c;
	scanf("%d",&c);
	if(c>7&&c<=10){
	    printf("YES");
	}
	else{
	    printf("NO");
	}

}

Logical mistake: last 3 pages mean 10,9,8 so condition should be like

if (c > 7 && c <= 10)