While

while文

public class WhileSample {
  public static void main(String[] args) {
    int i = 0;
    while (i <= 5) {
      System.out.println("iは" + i + "です。");
      i++;
    }
  }
}

タグ:

+ タグ編集
  • タグ:

このサイトはreCAPTCHAによって保護されており、Googleの プライバシーポリシー利用規約 が適用されます。

最終更新:2008年11月29日 01:47