Run ❯
Get your
own C#
server
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
using System; using System.Collections.Generic; namespace MyApplication { class Program { static void Main(string[] args) { Dictionary
capitals = new Dictionary
{ { "Norway", "Oslo" }, { "Japan", "Tokyo" }, { "Germany", "Berlin" } }; if (capitals.ContainsKey("Spain")) { Console.WriteLine(capitals["Spain"]); } else { Console.WriteLine("Spain is not in the dictionary"); } } } }
Spain is not in the dictionary