Professional Documents
Culture Documents
Lab Problem Statement
Lab Problem Statement
Problem Statement:
Write a C# program in Visual Studio: create an array of String type and initialize it with some
names, then print all the names on the console using for each loop.
Solution:
{
class Program
{
static void Main(string[] args)
{
string[] myarray = new string[]{ "Bilal", "Asad", "Saad",
"kamran" };
Console.ReadKey();
}
}
}