1077: 空心菱形
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
int n=cin.nextInt();
for(int i=1;i<=n;i++)
{
for(int j=1;j<=n+i-1;j++)
{
if(j==n+i-1||j==n+1-i) System.out.print("*");
else System.out.print(" ");
}
System.out.println();
}
for(int i=1;i<n;i++)
{
for(int j=1;j<=2*n-i-1;j++)
{
if(j==2*n-i-1||j==i+1) System.out.print("*");
else System.out.print(" ");
}
System.out.println();
}
}
}