public static void main(String[] args){
int i,s,y,k=0;
int count=0;
for(i=1;i
s = i*i*i;
while(s>0){
y = s%10;
s = s/10;
k+= y;
}
if(i==k){
count++;
System.out.println(i);
}
}
System.out.println(count);
}
代碼沾的有問題吧,for循環後面是什麼