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",
- "Java - object-oriented programming language, similar to C#",
- "Javascript - web programming language"};
- string word = "Java";//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