- To print whether number is even or odd

User Input: 3

Output: Odd Number

```
#include <iostream>
using namespace std;
int main() {
int n1;
cout<<"Enter your number: ";
cin>>n1;
if(n1%2==0) cout<<"Even Number";
else cout<<"Odd number";
return 0;
}
```

Enter your number : 4 Even NumberProgram

basic

You should know first :

**Even numbers: ** Numbers perfectly divisible by 2

`(number % 2 == 0)`

**Odd numbers: ** Numbers not perfectly divisible by 2

`(number % 2 != 0)`

you can use any one of the above as condition and in else portion just print the other one

ConceptComing Soon !

QuickTutorial

In order to succeed you must fail, so that you know what not to do the next time.