CS_0012_Array4
print the characters in a reverse array order
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication17
{
class Program
{
static void Main(string[] args)
{
string aFamousQuote = "
you can get what you want" +
"if
you help enough others what they want.";
char[] charArray = aFamousQuote.ToCharArray() ;
Array.Reverse (charArray);
foreach (char zigChar in charArray )
{
Console.Write(zigChar);
}
Console.ReadLine();
}
}
}
Comments
Post a Comment