- 博客(1)
- 收藏
- 关注
原创 水仙花数
水仙花数 获取个位 153%10=3 获取十位 153/10=15 15%10=5 获取百位 153/100 #include <iostream> #include <string> #include<ctime> using namespace std; int main() { int num = 100; do { int a, b, c = 0; a = num % 10; b = num / 10 % 10; c = num / 100
2020-10-20 19:24:07
516
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人