Structure of the Problem Requirements
This Program extract substring from a string in C# program. The program extract semicolon which occurred in string many times and in new string put all the alphabet of previous string except semicolon.
Source Code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LEPPOST
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine(" \t \t \t Programming Hub\n\n");
String expression = "The; Hands; That; Rock; the Cradl;e Rules; The World;";
String[] strExpression = expression.Split(';');
foreach (String st in strExpression)
{
Console.Write(st);
}
Console.ReadKey();
}
}
}
Output of the Program
Asad Niazi is Software Engineer , Programmer, Web Developers and a young mentor of Tech Solutions Desk and Blogging Solutions . Asad Love to writes about Technology, Programming, Blogging and make money online.
0 comments:
Post a Comment