使用for循环遍历所有三位数,一个一个地判断是否符合要求
摘要:解题思路:使用for循环遍历所有三位数,一个一个地判断是否符合要求注意事项:注意括号配对,需要细心检查参考代码:#include<bits/stdc++.h>using namespace……
新手写水仙花数判断(c++已过)
摘要:解题思路:由于确定为三位数,所以直接求各位数字即可注意事项:参考代码:#include<iostream>using namespace std;int main(){ for(int i=10……
旧物有情 # 枚举法求水仙花数
摘要:```
#include
using namespace std;
int main(){
//枚举所有三位数
for(int i=100; i……
[编程入门]水仙花数判断
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int i,a,b,c; f……
C++输出所有水仙花数
摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int i,j; int a,b,c; for(i……
数组存储,循环相除(C++)
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int arr[3] = { 0 ……
利用C++输出1000以内的所有水仙花数
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h>using namespace std;int judgement(int num);int main……