#include <stdio.h>
#include <stdlib.h>blog
int main(){
int i, j, k, n;
printf("水仙花數:\n");
for (n = 100; n < 1000; n++) {
i = n / 100;
j = n / 10 % 10;
k = n % 100 % 10;
if (n == i*i*i + j*j*j + k*k*k) {
printf("%d\n", n);
}
}
system("pause");
return 0;
}io