摘要: #include<iostream>using namespace std;int main() { int x = 1; do{ int z = 0; for (int y = x - 1; y >= 1; y--) { if (x % y == 0) { z = z + y; } } if (z 阅读全文
posted @ 2020-03-23 10:04 木屋小丑 阅读(1194) 评论(0) 推荐(0)
摘要: #include<iostream>#include<cmath>using namespace std;int main() { int x = 100; do { int a = 0; int b = 0; int c = 0; a = x % 10; b = x / 10 % 10; c = 阅读全文
posted @ 2020-03-23 09:22 木屋小丑 阅读(1942) 评论(0) 推荐(0)
摘要: #include <iostream>#include <cmath>using namespace std;int main() { int x, y, z; y = 10; cout<< "请输入一个正整数:" << endl; cin >> x; int n = 1; for (; n < 1 阅读全文
posted @ 2020-03-15 14:31 木屋小丑 阅读(890) 评论(0) 推荐(0)