返回列表 發帖
  1. package bn.tw;

  2. public class Main {

  3.         public static void main(String[] args) {
  4.                 // TODO 自動產生的方法 Stub
  5.                 int i = 100;
  6.                 int total = 0;
  7.                 while (i <= 200) {
  8.                         i=i+2;
  9.                         total += i;
  10.                 }
  11.                 System.out.println(total);
  12.         }
  13. }
複製代碼

TOP

返回列表