even odd in c++ code example
Example: number is even or odd c++
if ( n % 2 == 0)
cout << n << " is even.";
else
cout << n << " is odd.";
if ( n % 2 == 0)
cout << n << " is even.";
else
cout << n << " is odd.";