Skip to main content

Posts

Showing posts from July 23, 2014

String operations in c sharp # using Microsoft visual studio 2010

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication3 {     class Program     {         static void Main(string[] args)         {             string s,find;             int l,i=0;             s = Console.ReadLine();             string.Concat(s);             l=s.Length;             Console.WriteLine(s);             Console.WriteLine("length\t"+l );                         Console.WriteLine("first and last character  " + s[0]+"  "+s[l-1] );             for (i = 0; i < l; i++)             {      ...