1. 首页
  2. 编程语言
  3. Java
  4. java实验3.3(循环显示数字在5的时候跳出循环)

java实验3.3(循环显示数字在5的时候跳出循环)

上传者: 2020-08-11 15:26:35上传 RAR文件 2.73KB 热度 15次
Write a Java program called BreakLoop.java that uses a for loop with the variable "count" and count 1 to 10.. Display "count=" each time you loop through. Break out of the loop at 5. At the end of the program display "Broke out of the loop at count = 5". Output: count = 1 count = 2 count
下载地址
用户评论