Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ArrayExample
- {
- class ArrayExamples
- {
- static void Main()
- {
- string[] days = new string[7];
- {
- days[0] = "Monday";
- days[1] = "Tuesday";
- days[2] = "Wednesday";
- days[3] = "Thursday";
- days[4] = "Friday";
- days[5] = "Saturday";
- days[6] = "Sunday";
- }
- foreach(string d in days)
- {
- Console.WriteLine("this day is {0}",d);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement