考虑全面,平分为偶数,2不行

#include<iostream>
using namespace std;
int main()
{
    int a;
    cin>>a;
    if(a!=2&amp;&amp;a%2==0)
        cout<<&quot;YES, you can divide the watermelon into two even parts.&quot;<<endl;
    else 
        cout<<&quot;NO, you can't divide the watermelon into two even parts.&quot;<<endl;
    return 0;
}
a
全部评论

相关推荐

04-01 11:08
中原工学院 Java
老六f:感觉这种培训期过了就找理由给你开了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务