摘要: 循环结构 while循环 语法格式: While(布尔表达式){ //循环内容 } while(true):死循环 public static void main(String[] args) { //计算1+2+3+...+100=? int i = 0; int sum = 0; while ( 阅读全文
posted @ 2022-10-02 22:22 花开富贵Y 阅读(20) 评论(0) 推荐(0)