返回列表 發帖
  1. import java.util.Scanner;
  2. public class Helloworld {

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

TOP

返回列表