Tuesday, 3 December 2013

C# SIMPLE STRING PROGRAM-----|||||||

CODE:

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

namespace stringprogram
{
    class Program
    {
        static void Main(string[] args)
        {
            string s1 = "Lean";
            string s2 = s1.Insert(3, "r");
            string s3 = s2.Insert(5, "er");
            for (int i = 0; i < s3.Length; i++)
            {
                Console.Write(s3[i]);
                Console.WriteLine();
                Console.ReadKey();
            }
        }
    }
}

OUTPUT:


No comments:

Post a Comment