int j,k,l; int temp=100; for(j=1;j<=9;++j) for(k=0;k<=9;++k) for(l=0;l<10;++l) { if(j*j*j+k*k*k+l*l*l == temp) printf("%d \n", temp); temp++;