#include<iostream>
using namespace std;
int main()
{
int i = 0;
cout << "该程序能判断您输入的数的奇偶\n请键入您要判断的数:" << endl;
cin >> i;
cout << "您输入的数是:" << i << endl;
i % 2;
if (i = 1) //if=如果
{ //则
cout << "\n\n该数是奇数" << endl;
}
else //不满足
{ //则
cout << "\n\n该数是偶数" << endl;
} return 0;
}