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

  2. public class Main {
  3.         public static void main(String[] args) {
  4.                 // TODO 自動產生的方法 Stub
  5.                 int student[] = { 28, 33, 34, 30 };
  6.                 for (int i = 0; i <= 3; i++) {
  7.                         System.out.print(i+1+"班有:");
  8.                         System.out.println(student[i]+"人");
  9.                 }
  10.         }
  11. }
複製代碼

TOP

返回列表