#ifndef MYMATH_HPP #define MYMATH_HPP #include using namespace std; bool even(double x) { return (((int)floor(x)) % 2 == 0); } #endif // MYMATH_HPP