アットウィキロゴ
class Q2 {
   public static void main(String[] args) {
if(args.length == 3){
    int a = Integer.parseInt(args[0]);
    int b = Integer.parseInt(args[1]);
    int c = Integer.parseInt(args[2]);
    int m = a;
    if(m > b){
	m = b;
    }
    if(m > c){
	m = c;
    }
    System.out.println(m + "じゃないかしら?");
} else {
    System.out.println("三つじゃないとできないって知ってるでしょ?");
}
   }
}

タグ:

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