// Sample Solution
using System;
namespace ForEachLoop
{
class Program
{
static void Main(string[] args)
{
string[] todo = { "respond to email", "make wireframe", "program feature", "fix bugs" };
foreach(string item in todo)
{
CreateTodoItem(item);
}
}
static void CreateTodoItem(string item)
{
Console.WriteLine($"[] {item}");
}
}
}
No comments:
Post a Comment