using System;
public class Program
{
public static void Main()
string str="",reverse ="";int length;
Console.WriteLine("Enter string to reverse");
str = Console.ReadLine();
//length = str.Length - 1;
//Console.WriteLine(length);
for (int i = str.Length - 1; i >= 0; i--) //(int i = 0 ; i <= length ;i++)
//while(length >= 0)
reverse = reverse + str[i];
//length--;
}
Console.WriteLine(reverse);
Console.ReadLine();