open a console application project in c# language in your editor and just paste the following code in your class's brackets -
static void Main(string[] args)
{
Console.Write("Enter String: "); String temp = Console.ReadLine();
Console.WriteLine("\n");
int len = temp.Length;
char[] arr = new char[len];
for (int i = 0; i < len; i++)
{ arr[i] = temp[len - 1 - i];
}
Console.WriteLine(arr);
Console.Read();
}
Output is -
Friday, March 26, 2010
Subscribe to:
Post Comments (Atom)
We can achieve the above using advanced CSharp skills also ...
ReplyDeletestrRev = String.Concat(str.Reverse());
Try it and enjoy it.
Bhavna Tyagi
ReplyDeletethis information is very helpful