using System;
namespace Learn
{
class Program
{
static void
Main(string[] args)
{
string Str, Revstr
= "";
int Length;
Console.Write("Enter A String : ");
Str =
Console.ReadLine();
Length = Str.Length
- 1;
while (Length >= 0)
{
Revstr = Revstr
+ Str[Length];
Length--;
}
Console.WriteLine("Reverse
String Is {0}", Revstr);
Console.ReadLine();
}
}
}
|
C# | ASP.Net | MVC | SQL Server | jQuery | Java Script | LINQ | SSRS| Web Application | Bootstrap | Kendo
Thursday, 16 October 2014
Reverse a string in C#.NET
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment