for (int i = 1; i < 10; i++){for (int j = 0; j < 9 - i; j++){Console.Write(" ");}for (int j = 1; j <= i; j++){Console.Write(j);}for (int j = i - 1; j >= 1; j--){Console.Write(j);}Console.Write("\n");}