Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- namespace CSLight
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- bool isRunnig = true;
- Dictionary<string, string> words = new Dictionary<string, string>();
- words.Add("Габарит", "Размер, величина предмета");
- words.Add("Гавань", "Прибрежная часть водного пространства");
- words.Add("Абзац", "Красная строка, отступ в начале строки");
- while (isRunnig)
- {
- Console.WriteLine("Напишите слово");
- string userInput = Console.ReadLine();
- if (words.ContainsKey(userInput))
- {
- Console.WriteLine($"{userInput} - {words[userInput]}");
- }
- else
- {
- Console.WriteLine("Такого слова нет");
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement