public static void ReverseFast(string x)
{
string text = "HAMID ALI";
StringBuilder reverse = new StringBuilder();
for (int i = text.Length - 1; i >= 0; i--)
{
reverse.Append(text[i]);
}
Console.WriteLine(reverse);
}
No comments:
Post a Comment