BUT2/DEV/DEV2.1/Q4_Grille.java~
2023-10-23 13:23:36 +02:00

14 lines
277 B
Java

public class Q5_Grille{
public static void main(String[] args) {
int dimension = 0;
if (args.length > 1){
dimension = Integer.parseInt(args[0]);
}
for (int y=0 ; y<dimension ; y++){
for (int x=0 ; x<dimension ; x++){
System.out.print("+-");
}
}
}
}