Hey guys - I am just getting started here and have no C# or C++ experience. I am doing an exercise in the back of a chapter in the book I am reading. All it is asking for is a string to be inputed by the user and then for the characters in that string to be printed out backwards. I can print each character out ok, it is just the "backwards" part I am having trouble with. I'll show you what I have but, like I said, it does not print the string out backwards as it is supposed to. How can I modify it? If anyone can help, I would appreciate it. thanks, Ryan
static void Main(string[] args)
{
Console.WriteLine("Enter a phrase.");
string myString = Console.ReadLine();
char [] myChars = myString.ToCharArray();
foreach (char character in myChars)
{
Console.WriteLine("{0}", character);
}
}