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/06/28 15:14:49
![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 +](/uploads/image/z/6364051-43-1.jpg?t=public+class+test%7B%5Cx05public+static+void+main%28String+args%5B%5D+%29%7B%5Cx05int+x%3D0%3B%5Cx05%5Cx05int+y%3D0%3B%5Cx05while+%28x4%29%7By%3Dy-1%3B%7DSystem.out.print%28x+%2B+%22%22%2By%2B%22+%22%29%3Bx%3Dx%2B1%3B%5Cx05%7D%5Cx05%7D%5Cx05%7D02+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
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次.
}
}
}