Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Rextester.Program.Main is the entry point for your code. Don't change it.
- //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text.RegularExpressions;
- namespace Rextester
- {
- public class Program
- {
- public static void Main(string[] args)
- {
- //Your code goes here
- Dictionary<int, string> words = new Dictionary<int, string>();
- words.Add("game", "игра");
- words.Add("games", "игры");
- string input = Console.ReadLine();
- if(words.ContainsKey(input)
- {
- Console.WriteLine(words[input]);
- }
- else
- {
- Console.WriteLine("Word not found!");
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement