// freefunction.cpp : Defines the entry point for the console application. // #include #include #include using std::cout; using std::endl; using std::string; //using namespace std; bool Is_even(int x) { if (x % 2 == 0) { return true; } else { return false; } }; bool Is_two_more_even(int & x) { x = x + 2; if (x % 2 == 0) { return true; } else { return false; } }; int main() { int number = 12; cout << "The number is " << number << endl; cout << "Is even? " << Is_even(number) << endl; cout << "The number is " << number << endl; cout << "If we add two more to the number is the result even? " << Is_two_more_even(number) << endl; cout << "The number is " << number << endl; system("pause"); return 0; }