📅  最后修改于: 2022-03-11 14:44:54.109000             🧑  作者: Mango
#include
using namespace std;
int main()
{
int n;
cout << "Enter an integer: ";
cin >> n;
(n % 2 == 0) ? cout << n << " Is Even." : cout << n << " Is Odd.";
}