public static void Main()
Console.WriteLine("Enter a string.");
str = Console.ReadLine();
Console.Write("Search string for: ");
find = Console.ReadLine();
br1 = br1 + i + "----+----";
br2 = br2 + "0123456789";
br1 = br1.Substring(start, end);
br2 = br2.Substring(start, end);
Console.WriteLine("All occurrences of '{2}' from position {0} to {1}.", start, end-1, find);
Console.WriteLine("{1}{0}{2}{0}{3}{0}", Environment.NewLine, br1, br2, str);
Console.Write("The string '{0}' occurs at position(s): ", find);
while((start <= end) && (at > -1))
at = str.IndexOf(find, start, count);
Console.Write("{0} ", at);
Console.WriteLine("{0}{1} instances of string '{2}' found.", Environment.NewLine, numOf, find);
Console.WriteLine("Press Enter to close the program, or search for another string.");
find = Console.ReadLine();