How to reverse string without using any .net function or property???
string is "bulgaria".
How to reverse string in C#
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Kiran Kumar TalikotiRank #814 · 2.8K reputationPosted Nov 18, 2013, 7:07 PM EST
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();
}
}
Satyapriya NayakRank #47 · 31.5K reputationPosted Nov 18, 2013, 8:42 PM EST
Ravi ShekharRank #673 · 3.6K reputationPosted Nov 18, 2013, 9:41 PM EST