C# Bosluk Ekle


using System;
using System.Collections.Generic;
using System.Text;


namespace boslukekle
{
class Program
{
public static string boslukekle(int m)
{
string bosluk="";
for (int i = 0; i < m; i++)
bosluk = bosluk + " ";
return bosluk;
}
static void Main(string[] args)
{
string ad,soyad,sonad="";
int adet;
Console.Write("Adınızı Giriniz :"); ad = Console.ReadLine();
Console.Write("Soyadınızı Giriniz :"); soyad = Console.ReadLine();
Console.Write("Kaç boşluk bırakılsın :"); adet = Convert.ToInt16(Console.ReadLine());
sonad=(ad+boslukekle(adet)+soyad);
Console.WriteLine(sonad);
Console.ReadLine();
}
}
}