java输入一个两位正整数,找出满足其与另外的两位正整数之和等于它们的对调数之和的两位正整数
答案:2 悬赏:30
解决时间 2021-11-05 22:26
- 提问者网友:箛茗
- 2021-11-05 14:38
输入一个两位正整数,找出满足其与另外的两位正整数之和等于它们的对调数(36和63是对调数)之和的两位正整数。如:36+41=14+63=77
最佳答案
- 二级知识专家网友:煞尾
- 2021-11-05 15:59
+ x + " --->+" +
}
int class Kyo
{
public x + .Scanner; || x1 y = 11; y <.out;% 10 * <+ y y / java.util;main(String[] args)
{
Scanner scan = .nextInt().println("x1 
import .println("= x + y1)
{
System.out.println(y + "+"
if(w
public .close();y++)
{
int y1 = / 10;"100;* 10 + + "="+ w);99)
{
continue;>10 y;10 >>+ "=");99)
{
System;10;
if(y1
if(x1 10 new Scanner(System;
}
for(int + x y1  .in); 输入一个两位正整数");
int x "对调之后的数必须是两位的整数"10 + x1 + w = y %
break; void
if(x < 10 || x == .out;
}
int = scan;99)
{
continue;
while(true)
{
System;y1
System.out.println("程序退出");
scan;|| static 
}
int class Kyo
{
public x + .Scanner; || x1 y = 11; y <.out;% 10 * <+ y y / java.util;main(String[] args)
{
Scanner scan = .nextInt().println("x1 
import .println("= x + y1)
{
System.out.println(y + "+"
if(w
public .close();y++)
{
int y1 = / 10;"100;* 10 + + "="+ w);99)
{
continue;>10 y;10 >>+ "=");99)
{
System;10;
if(y1
if(x1 10 new Scanner(System;
}
for(int + x y1  .in); 输入一个两位正整数");
int x "对调之后的数必须是两位的整数"10 + x1 + w = y %
break; void
if(x < 10 || x == .out;
}
int = scan;99)
{
continue;
while(true)
{
System;y1
System.out.println("程序退出");
scan;|| static 
全部回答
- 1楼网友:低血压的长颈鹿
- 2021-11-05 16:23
num1=num+decadeT*10+unitT;unitT=0;
unit=num%10; int +rs+"
class Test2 main(String[] args) //找到了
for(int
 public int unitT=i%10;//各位
if(unitT==0){
+(unit*10+decade));
break; int decadeT=0;
{
public //各位
int num2=unit*10+decade+unitT*10+decadeT;rs=0;
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯