33,311
社区成员
发帖
与我相关
我的任务
分享
#include <iostream>
using namespace std;
int main()
{
int x;//how many dead.
for (x=1;x<1500;x++)
{
if((1500-x)%3==2 && (1500-x)%5==4&&(1500-x)%7==6)
{
cout << x << endl;
}
else
{
continue;;
}
}
return 0;
}