Thursday, January 16, 2020

Codeforces 4A Watermelon Solution in C

  1. Hey! I am Sujan Mridha, given the solution of 4A Watermelon Solution in C.
  2. #include<stdio.h>
  3. int main()
  4. {
  5. int w;
scanf("%d", &w);
if (w>=1 && w<=100)
{
if (w==2) printf("NO\n");
else if (w%2==0) printf("YES\n");
else printf("NO\n");
}
return 0;
  1. }

No comments:

Post a Comment

Codeforces 131A cAPS lOCK Solution in C

#include <stdio.h> int main () { char ch [ 106 ]; int i , j , ck = 1 ; scanf ( "%s" , ch ); ...