Difference between revisions of "Console writing and sleeping"
From MyWiki
(One intermediate revision by the same user not shown) | |
(No difference)
|
Latest revision as of 12:59, 23 June 2014
Console.Write("adsfasdf"); System.Threading.Thread.Sleep(5000); Console.WriteLine("adsfasdfadsfdasfasfd");
Program that uses Console.WriteLine with arrays: C# using System; class Program { static void Main() {
char[] array = new char[] { 'a', 'b', 'c', 'd' }; // // Write the entire char array on a new line. // Console.WriteLine(array); // // Write the middle 2 characters on a new line. // Console.WriteLine(array, 1, 2);
} }