using System;
public class Program
{
public static void Main()
// creates two strings to hold the origal sting and the inverse of the original string.
string input = "", reverse = "";
//prompts the user for input
Console.WriteLine("Enter a String");
// Takes a string from the user
input = Console.ReadLine();
// Uses a for loop to gives you a number that represents how long the string is. Subracting 1 from that number starts the loop on that last character of the string
for (int L = input.Length -1; L>=0; L--)
// adds each character from the original string to the new string each time the loop runs. The loop starts with the last character in the original string.
reverse = reverse + input[L];
}
// Prints the new string
Console.WriteLine(reverse);
// keeps the console window from closing in visual studio.
Console.ReadLine();