Venciity

[C#] Arrays Terelik Example

Jan 9th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.70 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace arrays_terelik
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             string[] daysOfWeek =
  14.             {
  15.                 "Monday",
  16.                 "Tuesday",
  17.                 "Wednesday",
  18.                 "Thursday",
  19.                 "Friday",
  20.                 "Saturday",
  21.                 "Sunday"
  22.             };
  23.  
  24.             Console.Write("Length of week :");
  25.             Console.WriteLine(daysOfWeek.Length);
  26.             daysOfWeek[0] = "понедремник";
  27.             Console.WriteLine(daysOfWeek[0]);
  28.         }
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment