#include<stdio.h>
int main(void)
{
int a, b, c, n;
for(n = 100; n <= 1000; n++)
{
a = n / 100;
b = n / 10 % 10;
c = n % 10%10;
if (a * a * a + b * b * b + c * c * c == n) {
printf("%d ", n);
}
}
printf("\n");
return 0;
}
#include<stdio.h>
int main(void)
{
int a, b, c, n;
for(n = 100; n <= 1000; n++)
{
a = n / 100;
b = n / 10 % 10;
c = n % 10%10;
if (a * a * a + b * b * b + c * c * c == n) {
printf("%d ", n);
}
}
printf("\n");
return 0;
}