Mode:
Duration:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using System;
using System.Collections.Generic;
class Program {
static void Main() {
Dictionary<string, int> ages = new Dictionary<string, int> {
{"Alice", 25},
{"Bob", 30}
};
foreach (var kvp in ages) {
Console.WriteLine($"{kvp.Key} is {kvp.Value} years old");
}
}
}Coding works best on desktop or with an external keyboard.