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

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/06 14:31:39
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 +

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
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

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
这是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的值,一起输出的xy黏在一起,成了02之类的,还有14 25 36 47.
x=x+1; // x增加1 .用于终止循环.也就是加5次后x变成 5.所以循环体要执行5次.
}
}
}