Professional Documents
Culture Documents
Basic Concepts of Oop
Basic Concepts of Oop
int main()
{
int a;
cout << "Enter the number: "; cin >> a;
if (a % 2 == 0)
{
cout << "The number is EVEN" << endl;
} else {
cout << "The number is ODD" << endl;
}
return 0;
}