public class test{
public class test{
\x05public static void main(String args[] ){
\x05int x=0;
\x05\x05int y=0;
\x05while (x4){
y=y-1;}
System.out.print(x + ""+y+" ");
x=x+1;
\x05}
\x05}
\x05
}
02 14 25 36 47
\x05public static void main(String args[] ){
\x05int x=0;
\x05\x05int y=0;
\x05while (x4){
y=y-1;}
System.out.print(x + ""+y+" ");
x=x+1;
\x05}
\x05}
\x05
}
02 14 25 36 47
其他人气:854 ℃时间:2020-04-15 04:26:33
优质解答
这是JAVA代码.public class test{\x05public static void main(String args[] ){\x05int x=0;\x05int y=0;\x05while (x4) { //若果y大于4,就y减少1.y=y-1;}System.out.print(x + ""+y+" "); //输出x和y的值,一起输出...假设上面的条件中有X 那是不是第一次输出完了的x的值也要在x=x+1加上1?System.out.print(x + ""+y+" ");x=x+1;两个语句是相邻的,没有什么跳转,所以每次输出xy后,下一步就是 x = x+1 进行x自增。但不是 x = x+1 再加1.x = x + 1 而已。
我来回答
类似推荐
猜你喜欢
- 1用5,8,7任意排一个三位数用0去替代其中的哪位数,组成的奇数和偶�
- 2我们青少年学生在日常生活中可以为民族团结做些什么?
- 3if you have any question,feel free to call me whenerer you like
- 4This is generally because they have not had to work for their money
- 5A只有直接接触的物体才可能发生力的作用
- 6以森林防火为题,求一篇300字的作文.急.
- 7计算:3×(2^2+1)(2^4+1)(2^8+1)(2^16+1)+1
- 8下列有机物中,酸性最强的是A甲酸B草酸C碳酸D乙酸
- 9已知a的倒数等于他本身,负数b的绝对值是3,c的相反数是5 4ab^2-6abc=?
- 10熟能生巧的意思