Advertisement
meta1211

Untitled

Apr 7th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. //Rextester.Program.Main is the entry point for your code. Don't change it.
  2. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5
  3.  
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text.RegularExpressions;
  8.  
  9. namespace Rextester
  10. {
  11. public class Program
  12. {
  13. public static void Main(string[] args)
  14. {
  15. //Your code goes here
  16. Dictionary<int, string> words = new Dictionary<int, string>();
  17. words.Add("game", "игра");
  18. words.Add("games", "игры");
  19. string input = Console.ReadLine();
  20. if(words.ContainsKey(input)
  21. {
  22. Console.WriteLine(words[input]);
  23. }
  24. else
  25. {
  26. Console.WriteLine("Word not found!");
  27. }
  28. }
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement