Reverse order of strings in c#


This resource is about to read a string in reverse order.

static void Main(string[] args)
{
char[]your_input;
Console.WriteLine("Please Enter your Name : ");
string s = Console.ReadLine();
your_input = s.ToCharArray();
Array.Reverse(name);
Console.WriteLine(your_input);
Console.ReadLine();

}


Comments

Guest Author: ksubbareddy30 Sep 2012

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

namespace Reverse_order_of_string
{
class Program
{
static void Main(string[] args)
{

char[] your_input;
Console.WriteLine("Please Enter Yor Name : ");
string s = Console.ReadLine();
your_input = s.ToCharArray();
Array.Reverse(your_input);
Console.WriteLine(your_input);
Console.ReadLine();

}

public static Array name { get; set; }
}
}



  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name:
    Email: