Sunday, April 26, 2020

4A Watermelon solution

  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int w;
  6. cin>>w;
  7. if(w!=2 && w%2==0)
  8. cout<<"YES"<<endl;
  9. else cout<<"NO"<<endl;
  10. return 0;
  11. }

No comments:

Post a Comment

Aptitude test assistant programmer 2018

 #include <stdio.h> #include <stdlib.h> int main() { char str[100]; int i; int space=0;     printf("Enter a string\n")...