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;
}

(Visited 476 times, 1 visits today)
By | 2017-04-07T22:11:52+00:00 October 15th, 2016|Categories: C/C++, Programming|Tags: , , , , , |0 Comments

About the Author:

Leave A Comment