习题3.19
#include <iostream>
#include <cmath>
using namespace std;
int main() {
int i = 100;
cout << "三位的水仙花数共有:" << endl;
for (i = 100; i < 1000; i++) {
if (i == pow((i / 100), 3) + pow((i % 100 / 10), 3) + pow((i % 10), 3))
cout << i << endl;
}
return 0;
}