标签:循环 pac 条件 pre main java sys rgs static
1 package com.xunhuan; 2 3 4 5 public class ZuoYe01 { 6 7 public static void main(String[] args) { 8 9 int b =100; //定义一个变量B为100 10 while (b>0) { //while循环条件b>0 11 System.out.println(b+""); 12 b=b-5; //b每次减5 13 14 15 } 16 } 17 }
标签:循环 pac 条件 pre main java sys rgs static
原文地址:http://www.cnblogs.com/mengxianglong/p/7853187.html