Fon Döngüsü ile
*
***
*****
*******
*****
***
*
Şeklinde Ekran görüntüsü oluşturan programı C# Console uygulamasını yazın..
for (int i = 1; i < 10; i += 2) {
for (int j = 0; j < 9 - i / 2; j++)
Console.Write(" ");
for (int j = 0; j < i; j++)
Console.Write("*");
Console.WriteLine();
}
for (int i = 7; i > 0; i -= 2) {
for (int j = 0; j < 9 - i / 2; j++)
Console.Write(" ");
for (int j = 0; j < i; j++)
Console.Write("*");
Console.Write("n");
}
Console.ReadLine();



2 for ile yapamazmıyız bunu ?