Yıldız karakteri ile boşluklu K harfi oluşturma — Csharp Console — C#
[code lang=”csharp”]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;//www.gorselprogramlama.com
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
string y = "";
for (int i = 10; i > 0; i-=2)
{
y = "";//www.gorselprogramlama.com
for (int j = 0; j <i-1; j++)
{
if (i!=10 && j == (i / 2)) y += " ";
y += "*";
}
Console.Write(y + "\n");
}//www.gorselprogramlama.com
y = "";
for (int i = 0; i <= 10; i=i+2)
{
y = "";//www.gorselprogramlama.com
for (int j = 0; j < i-1; j++)
{
if (i!=10 && j == (i / 2)) y += " ";
y += "*";
}
Console.Write(y + "\n");
}
Console.ReadKey();
}
}
}
[/code]

Hocam örnekleriniz çok güzel biraz daha detaylı açıklama olması bizler için daha faydalı olacaktır.