i have used macro to declare a loop for short cut
| 4 | #define fo(i,n) for(i=0;i<n;i++) |
| 5 | //i have used macro to declare a loop for short cut |
| 6 | int 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected