Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- class Dictionary
- {
- static void Main()
- {
- string[] dictionary = { ".NET - platform for applications from Microsoft",
- "CLR - managed execution environment for .NET",
- "namespace - hierarchical - organization of classes" };
- string word = "namespace";//Console.ReadLine();
- foreach (string line in dictionary)
- {
- if (line.IndexOf(word)==0)
- {
- Console.WriteLine(line);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement