public static void Main()
string strItemCode = "sony-dvd-062019";
string[] strInfoArray = strItemCode.Split('-');
foreach (string element in strInfoArray)
Console.WriteLine(element);
Console.WriteLine("====================");
string strBefore = "That is not a chair.";
Console.WriteLine("Before: " + strBefore);
string strText = "That is not a chair.";
string strRemovedString = "not ";
strText = strText.Remove(strText.IndexOf(strRemovedString), strRemovedString.Length);
Console.WriteLine("After: " + strText);
Console.WriteLine("====================");
string[] birthday_array =
foreach (string birthday in birthday_array)
string[] parts = birthday.Split('/');
if (parts.Length == 3 && parts[0].Length == 2 && parts[1].Length == 2 && parts[2].Length == 4)
Console.WriteLine(birthday);
Console.WriteLine("Please enter a number: ");
iInput = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Sum: {0}", iSum);
for (int i = 1; i <= 5; i++)
for (int j = 1; j <= i; j++)