解题思路:
注意事项:
参考代码:
public class 性质数 {
public static void main(String args[]){
double a,b,t;
for(int i=1000;i<10000;i++){
a=i/100;
b=i%100;
t=Math.pow(a+b,2);
if(t==i)
System.out.print(i+" ");
}
}
}
0.0分
0 人评分