3个回答
展开全部
public class test{
public static void main(String[] args) {
for (int a = 1; a <= 9; a++) {
for (int b = 1; b <= 9; b++) {
for (int c = 1; c <= 9; c++) {
for (int d = 1; d <= 9; d++) {
for (int e = 1; e <= 9; e++) {
if (a*10000+b*1000+c*100+d*10+e==4*(e*10000+d*1000+c*100+b*10+a)) {
System.out.println("A="+a+",B="+b+",C="+c+",D="+d+",e="+e);
}
}
}
}
}
}
}
}
public static void main(String[] args) {
for (int a = 1; a <= 9; a++) {
for (int b = 1; b <= 9; b++) {
for (int c = 1; c <= 9; c++) {
for (int d = 1; d <= 9; d++) {
for (int e = 1; e <= 9; e++) {
if (a*10000+b*1000+c*100+d*10+e==4*(e*10000+d*1000+c*100+b*10+a)) {
System.out.println("A="+a+",B="+b+",C="+c+",D="+d+",e="+e);
}
}
}
}
}
}
}
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
21978
21978×4=87912
21978×4=87912
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询