.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Post New Resource Bookmark and Share   

String reverse triangle

Posted By:laptop charles       Posted Date: September 02, 2010    Points: 10    Category:    URL: http://www.dotnetspark.com  

Reverse triangle in particlur string
 

It has using string "remove" concept.

it is step by step remove a single charector.

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

namespace charlesReverse
{
    class Program
    {
        static void Main(string[] args)
        {
            
            string c = "charles";
            for (int i =0; i<=6 ; i++)
            {
               
                Console.WriteLine(c.Remove(0,i));
            }
            Console.ReadLine();


        }
    }
}

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend