原本是80%,但想到了2也是偶数,但不能做到要求!

#include<stdio.h>
int main()
{
    int n;
    scanf("%d",&n);
    if(n%2==0&&n>2)
       printf("YES, you can divide the watermelon into two even parts.");
     else
       printf("NO, you can't divide the watermelon into two even parts.");
}
全部评论
10可以分成4 和6  或者2和8
点赞 回复 分享
发布于 2019-05-31 12:04

相关推荐

评论
点赞
收藏
分享

创作者周榜

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