15 Nisan 2013 Pazartesi

98 - String Metodlar... Her Seferinde Artan Harfler... Substring Metodu...


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication6
{
    class Program
    {
        static void Main(string[] args)
        {
            // Sırası ile artan harfler...
            Console.WriteLine("İsminizi Giriniz...");
            string text = Console.ReadLine();
            for (int i = 0; i <= text.Length; i++)
                Console.WriteLine(text.Substring(0, i)); // Her seferinde bir tane fazla harf alınıyor...

            Console.ReadKey();
        }
    }
}