题解|c++ & python
2025-07-23 14:25:13
发布于:上海
0阅读
0回复
0点赞
c++解法:
#include <bits/stdc++.h>
using namespace std;
int main(){
for(int i = 100; i >= 1; i--){
if(i % 5 == 0)cout << i << endl;
}
return 0;
}
Python解法:
for i in range(100, 0, -5):
print(i)
这里空空如也
有帮助,赞一个