标签:microsoft adl soft print 嵌套循环 ++ system 语句 dea
/*死循环不允许在死循环最后输入输出语句否则会报错
* 循环嵌套*/
public class Deadloop {
public static void main(String[] args) {
while (true){
System.out.println("你是猪");
}
}
}
//嵌套循环
public class break1continue {
public static void main(String[] args) {
for (int i = 0; i < 24; i++) {
for (int j = 0; j < 60; j++) {
System.out.println(i + "时"+j+"分");
}
}
}
}
标签:microsoft adl soft print 嵌套循环 ++ system 语句 dea
原文地址:https://www.cnblogs.com/xzwx668/p/11974156.html