How to reverse string without using any .net function or property???
string is "bulgaria".
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kiran Kumar TalikotiPosted Nov 19, 2013, 12:07 AM
Check this code
class Program
{
static void Main(string[] args)
{
string str, rev = " ";
Console.WriteLine("Enter String\n");
str = Console.ReadLine();
for (int i = str.Length - 1; i >= 0; i--)
{
rev = rev + str[i];
}
Console.WriteLine("Input Sring :" + str);
Console.WriteLine("Reverse Of String: " + rev);
Console.ReadKey();
}
}
Ravi ShekharPosted Nov 19, 2013, 2:41 AM
Satyapriya NayakPosted Nov 19, 2013, 1:42 AM