A. Watermelon CodeForces 4A solution using C

Hi Guys , I just solved the A. Watermelon problem In CodeForces Using C . I hope you like it , if you know any better way or in any other language feel free to comment .

 #include<stdio.h>

int main()
{
int x;
scanf(“%d”,&x);
if(x%2==0 && x>2)
{
printf(“YES”);
}
else
{
printf(“NO”);
}
return 0;
}

Leave a Reply

Your email address will not be published. Required fields are marked *