#include<iostream>
using namespace std;
int main()
{
int num = 0;
cout << "please input num" << endl;
cin >> num;
if (num % 5 == 0 && num % 7 == 0)
cout << "yes" << endl;
else
cout << "no" << endl;
return 0;
}
试编程判断输入的正整数是否既是5又是7的整倍数,若是,则输出yes,否则输出no。
最新推荐文章于 2024-03-26 17:54:42 发布