返回列表 發帖
  1. public class Ch01{
  2.     public static void main(String args[])
  3.     {
  4.         int x=0,y=100;
  5.         while(i<=200)
  6.         {
  7.             x+=y;
  8.             y+=2;
  9.         }
  10.         System.out.println("100~200間所有偶數的總和: "+x);
  11.     }
  12. }
複製代碼

TOP

返回列表