MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / main

Function main

Codeforces_problems/watermelon/solution.cpp:6–26  ·  view source on GitHub ↗

i have used macro to declare a loop for short cut

Source from the content-addressed store, hash-verified

4#define fo(i,n) for(i=0;i<n;i++)
5//i have used macro to declare a loop for short cut
6int main() {
7 int n;
8 cin>>n;
9 //took input from the user
10 //if the number entered is two it cannot be divided into even natural numbers
11 //thats why its a corner case and needs to be handled differently
12 if(n==2){
13 cout<<"NO"<<endl;
14 }
15 //if there is any even number it can be divided evenly
16 else if(n%2==0){
17 cout<<"YES"<<endl;
18 }
19 //no odd number can be divided evenly
20 else{
21 cout<<"NO"<<endl;
22 }
23
24
25 return 0;
26}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected