import java.util.Scanner;
class Play {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
show(a);
}
public static void show(int a ){
for (int i =0;i<=2*a ;i++ ) {
for (int j =0;j<= 2*a ;j++ ) {
if (i==2*a -2*j||i==2*j-2*a||j==4*a-2*i||j==2*i-2*a||(i==a&&j%4==0)) {
System.out.print("*");
}else {
System.out.print(" ");
}
}
System.out.println();
}
}
}
|
|