18 lines
288 B
C++
18 lines
288 B
C++
#include "isEven.h"
|
|
#include <iostream>
|
|
|
|
int main() {
|
|
int x;
|
|
while (true) {
|
|
std::cout << "BENOIT< Is this number even ? ";
|
|
std::cin >> x;
|
|
|
|
if (isEven(x)) {
|
|
std::cout << "BENOIT> True\n\n";
|
|
} else {
|
|
std::cout << "BENOIT> False\n\n";
|
|
}
|
|
}
|
|
return 0;
|
|
}
|