Horje
even and odd in c++ Code Example
even and odd in c++
#include <iostream>
using namespace std;

int main()
{
	int n;
	cout << "Enter an integer: ";
	cin >> n;
	(n % 2 == 0) ? cout << n << " Is Even." : cout << n << " Is Odd.";
}




Cpp

Related
creating node in c++ Code Example creating node in c++ Code Example
how to modify 2d array in function c++ Code Example how to modify 2d array in function c++ Code Example
c++ last element of array Code Example c++ last element of array Code Example
for loop in cpp Code Example for loop in cpp Code Example
<< in c++ Code Example << in c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7