- static void Main(string[] args)
- {
-
- Console.WriteLine("Give me a string:");
- string mystring = Console.ReadLine();
- string myresult = "";
- for (int i = mystring.Length - 1; i >= 0; i--)
- {
- myresult += mystring[i];
- }
- Console.WriteLine("The result is {0}:",myresult);
- Console.ReadKey();
- }