- var counts = new Dictionary<int, int>();
- int[] array = { 10, 5, 10, 2, 2, 3, 4, 5, 5, 6, 7, 8, 9, 11, 12, 12 };
- for (int i = 0; i < array.Length; i++)
- {
- int currentVal = array[i];
- if (counts.ContainsKey(currentVal))
- counts[currentVal]++;
- else
- counts[currentVal] = 1;
- }
- foreach (var kvp in counts)
- MessageBox.Show("\t\n " + kvp.Key + " occurs " + kvp.Value);
görüntülüshow
ReplyDeleteücretli show
4CX
شركة تنظيف بالجبيل AmxBmHM6C4
ReplyDelete