Code for IN. modifiers in c#

Vivek.Ramapuram
Posted by Vivek.Ramapuram under C# category on | Points: 40 | Views : 336
class Program
{
static void Main()
{
string[] Friends = new string[3];

Friends[0] = "Vivek";
Friends[1] = "Surendra";
Friends[2] = "Sagar";

foreach (string name in Friends)
{
Console.WriteLine(name);
}

foreach (char c in "Hello")
{
Console.WriteLine(c);
}
}
}

Comments or Responses

Login to post response