My issue
What is wrong this program
My code
#include <stdio.h>
int main(void) {
int N;
if(6<=N&&N<=8)
{
printf("Yes");
}
else
{
printf("NO");
}
return 0;
}
Problem Link: Puzzle Hunt Practice Coding Problem - CodeChef
What is wrong this program
#include <stdio.h>
int main(void) {
int N;
if(6<=N&&N<=8)
{
printf("Yes");
}
else
{
printf("NO");
}
return 0;
}
Problem Link: Puzzle Hunt Practice Coding Problem - CodeChef
Variable N must store the user input. Before the if statement, you need to assign the user input value to N.
scanf("%d", &N);