Solving “Reverse String” from Daily Bite

“Cat”, return “taC”
“The Daily Byte”, return "etyB yliaD ehT”
“civic”, return “civic”
using System;public class Test
{
public static void Main()
{
// your code goes here
string name = "Kapil";

System.Console.WriteLine(name);
int length = name.Length;
for(int i=length-1; i>=0; i--)
{
System.Console.Write(name[i]);
}
}
}

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store