https://www.acmicpc.net/problem/10996
using System;
class Program
{
static void Main() {
string arr=Console.ReadLine();
int n=int.Parse(arr);
int f=0;
if(n==1) Console.Write("*");
else{
for(int i=1;i<=2*n;i++){
for(int j=1;j<=n/2;j++){
if(i%2==1&&n%2==0){
if(f==0){
Console.Write("*");
f++;
}
if(j<n/2) Console.Write(" *");
}
else if(i%2==1&&n%2==1){
if(f==0){
Console.Write("*");
f++;
}
Console.Write(" *");
}
else{
Console.Write(" *");
}
}
f=0;
Console.WriteLine();
}
}
}
}