public class Main {
public static void main(String[] args) {
f(8);
}
public static void f(int n) {
String s = "*";
for (int i = 0; i < 2 * n - 3; i++)
s += ".";
s += "*";
String s1 = s + "
";
String s2 = "";
for (int i = 0; i < n - 1; i++) {
s = "." + s.substring(0, s.length() - 3) + "*"; // 填空
s1 = s + "
" + s1;
s2 += s + "
";
}
System.out.println(s1 + s2);
}
}