アットウィキロゴ
class Q6 {
   public static void main(String[] args) {
if(args.length == 1) {
    final int N = Integer.parseInt(args[0]);
    int n = 1;
    while(n <= N) {
	if(n % 2 == 0) {
	    System.out.println(n + "とか");
	}
	n++;
    }
    System.out.println("こんな感じでどうでしょう。");
} else {
    System.out.println("値をひとつ入れてくれってばよ。");
}
   }
}

タグ:

+ タグ編集
  • タグ:
最終更新:2009年05月02日 21:18