#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main() {
int a;
for (a = 100; a < 1000; a++) {
if (a == pow((a / 100), 3) + pow((a / 10) % 10, 3) + pow((a % 10),3)) {
printf("%d\n", a);
}
}
system("pause");
}
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main() {
int a;
for (a = 100; a < 1000; a++) {
if (a == pow((a / 100), 3) + pow((a / 10) % 10, 3) + pow((a % 10),3)) {
printf("%d\n", a);
}
}
system("pause");
}