int N = 200;
int i, j, k;
for (i = 1; i <= N; i++)
{
for (j = N; j > i; j--)
{
Console.Write(" ");
}
for (k = 1; k < 2 * i; k++)
{
Console.Write("*");
}
Console.WriteLine();
}
for (i = 0; i < N - 1; i++)
{
for (j = 0; j <= i; j++)
{
Console.Write(" ");
}
for (k = 1; k < 2 * (N - 1) - 2 * i; k++)
{
Console.Write("*");
}
Console.WriteLine();
}
|