如下代码无法通过测试,不知道啥原因
查看原帖
如下代码无法通过测试,不知道啥原因
636572
x13511028685楼主2022/7/14 11:18
#include <cstdio>
#include <cmath>
using namespace std;
	
int main()
{
    int a;
    cin>>a;
    if (a%2==1)
    {
        cout<<"odd";
    }
    else if (a%2==0)
    {
        cout<<"even";
    }
    else cout << "even";
    return 0;
}

2022/7/14 11:18
加载中...