c++水仙花数 #include#includeusing namespace std;int main(){int n,a,s,d;for(n=100;n<1000;n++){a=n%10;s=(n/10)%10;d=n/100;if(n==aaa+sss+ddd)cout<<n<<" ";}cout<<endl;return 0;}