#include<stdio.h> void main() { int i,j,k,n=100; while (n<1000) { i=n/100; j=(n-i*100)/10; k=n%10; if(n==i*i*i+j*j*j+k*k*k) printf("%d ",n); n++ ; } }