public class Test {
public static void main(String args[]) {
int i = 1;
int j = 8;
int s = 0;
do {
if (i++ < --j) {
s++;
continue;
}
if (i > j) {
s++;
break;
}
} while (i < 4);
System.out.print(i);
System.out.print(j);
System.out.print(s);
}
}
程序运行输出结果是:
发布于 2020-12-25 22:07:43
登录后免费查看答案
关注者
0
被浏览
169