判断输入的数是否为4的倍数并且除以2就行
2024-01-29 16:54:08
发布于:广东
33阅读
1回复
2点赞
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
if(n%4==0 and n/2 >0) cout<<"YES";
else cout<<"NO";
return 0;
}
全部评论 1
有些帮助吧?
2024-01-25 来自 广东
0
2024-01-29 16:54:08
发布于:广东
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
if(n%4==0 and n/2 >0) cout<<"YES";
else cout<<"NO";
return 0;
}
有帮助,赞一个