static void Main(string[] args)
{
string flag = "y";
while (flag == "Y" || flag == "y")
{
Console.WriteLine("請輸入一個奇數:");
string s = Console.ReadLine();
if (s.Length > 1)
return;
if (!char.IsNumber(s,0))
return;
int nn = Convert.ToInt32(s);
if (nn != 0 && nn / 2 != 0)
{
int[,] arryss = Demo(nn);
for (int i = 0; i < nn; i++)
{
for (int j = 0; j < nn; j++)
{
Console.Write(arryss[i, j] + " ");
if ((j + 1) % nn == 0)
{
Console.Write("
"