using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Using_String_Array_In_C
{
class Program
{
// Create string array of seven references.
static void Main(string[] args)
{
string[] week = new string[7];
week[0] = "Sunday";
week[1] = "Monday";
week[2] = "Tuesday";
week[3] = "Wednsday";
week[4] = "Thursday";
week[5] = "friday";
week[6] = "Saturday";
foreach (string
strweek in week)
{
Console.WriteLine(strweek);
}
Console.ReadKey();
}
}
No comments:
Post a Comment