38
1
using System;
2
using System.Collections.Generic;
3
4
public class IDCS {
5
6
public static void Main()
7
{
8
9
10
Dictionary<string, string> programming =
11
new Dictionary<string, string>();
12
13
14
programming.Add("1", "C");
15
programming.Add("2", "C++");
16
programming.Add("3", "C#");
17
programming.Add("4", "JAVA");
18
programming.Add("5", "Kalimantan");
19
programming.Add("6", "Kotlin");
20
21
22
Console.WriteLine("Jumlah DATA pada Dictionary : " + programming.Count);
23
Console.WriteLine();
24
foreach (string s in programming.Keys)
25
Console.WriteLine(s + ": " + programming[s]);
26
27
28
29
programming.Remove("5");
30
31
Console.WriteLine();
32
Console.WriteLine("Jumlah DATA pada Dictionary : " + programming.Count);
33
Console.WriteLine();
34
foreach (string s in programming.Keys)
35
Console.WriteLine(s + ": " + programming[s]);
36
37
}
38
}
Cached Result
Compilation error (line 49, col 20): ; expected
Compilation error (line 50, col 20): ; expected
Compilation error (line 49, col 7): The variable 'primeroNumero' is declared but never used
Compilation error (line 50, col 7): The variable 'segundoNumero' is declared but never used
Compilation error (line 51, col 7): The variable 'suma' is declared but never used
Compilation error (line 50, col 20): ; expected
Compilation error (line 49, col 7): The variable 'primeroNumero' is declared but never used
Compilation error (line 50, col 7): The variable 'segundoNumero' is declared but never used
Compilation error (line 51, col 7): The variable 'suma' is declared but never used