public class WhileDemo01 {
public static void main(String[] args) {
int b1=0;
int a=100;
while(a<=1000) {
int g=a%10;
int s=a/10%10;
int b=a/100%10;
if(g*g*g+s*s*s+b*b*b==a) {b1++;}
System.out.println(b1);
}
}
} 我真的不知道哪里错了,为什么输出结果会是十几万,还在无线循环