public class A{
public static void main(String[] args) {
int a;
int b;int c=0;
for(a=100;a<=999;a++){
for(b=100;b<=999;b++){
int n=a*b;
int temp=n;
while(n>0){
int r=n%10;
c=(c*10)+r;
n=n/10;
}
if(temp==c){
System.out.println(c);
}
}
}
}
}
代码编译良好,但运行时只是跳过所有内容并退出。请帮助。 P.S.问题4欧拉计划代码跳过运行
你应该学会[如何调试程序(https://ericlippert.com/2014/03/05/how-to-调试小程序/)。 –