Posts

Showing posts from August, 2015

String programming in C#

How to Reverse a word from the sentences: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Programing {     class Program     {         static void Main(string[] args)         {             Console.WriteLine("String");             string str=Console.ReadLine();                       string[] arySource = str.Split(' ');             string strReverse = string.Empty;             int length = Convert.ToInt32(arySource.Length);             for (int i = length - 1; i >= 0; i--)             {                 strReverse = strReverse + " "  + arySource[i];          ...