返回列表 發帖
  1. public class ch21
  2. {
  3.     public static void main(String args[])
  4.     {
  5.        int i = 100;
  6.        int x = 0;
  7.        while (i<=200)
  8.        {
  9.         x=i+x;
  10.        i+=2;
  11.        }
  12.         System.out.print((x));
  13.     }
  14. }
複製代碼

TOP

返回列表