In this program, you will take string input from users and you will reverse those string
using System;
class ReverseStr {
public static void Main() {
string str,revStr="";
int len;
Console.WriteLine("Enter the String: ");
str=Console.ReadLine();
len=str.Length-1;
while(len>=0)
{
revStr=revStr+str[len];
len--;
}
Console.WriteLine("Reverse String are:"+revStr);
}
}
Enter the String: harry Reverse String are:yrrah