DEV_BUT1/DEV2.1/TP01/Grille.java
2023-02-08 11:18:16 +01:00

10 lines
231 B
Java

public class Grille{
public static void main(String[] args) {
System.out.println("+-+-+");
int a = Integer.parseInt(args[0]);
for (int i=0; i< a; i++){
System.out.println("| | |");
System.out.println("+-+-+");
}
}
}