BUT2/DEV/DEV3.2/TP02_Recursivite/Q3Main.java

15 lines
439 B
Java
Raw Permalink Normal View History

2023-10-12 16:39:49 +02:00
public class Q3Main{
public static void main(String[] args) {
try{
int i = Integer.parseInt(args[0]);
Q3Fibonacci calcul = new Q3Fibonacci();
calcul.fibonacci(i);
}
catch(NumberFormatException e){
System.out.println("erreur argument");
}
catch(ArrayIndexOutOfBoundsException e){
System.out.println("erreur argument");
}
}
}