Reverse string "toolliyo".
Ready — edit the code above and click Run.
using System;
class Program
{
static void Main()
{
string s = "toolliyo";
char[] a = s.ToCharArray(); Array.Reverse(a);
Console.WriteLine(new string(a));
}
}
Try solving on your own first, then reveal the official answer.
Char array reverse.