题
2026-10-06 17:23:11
发布于:浙江
5阅读
0回复
0点赞
题
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d=1,e=0;
cin>>a>>b>>c;
for(int i=a;i<=b;i++)
{
if(i%c==0)
{
e++;
cout<<i<<" ";
}
}
if(e==0)
cout<<"-1";
return 0;
}
这里空空如也








有帮助,赞一个