How to clear item not input when count frequency use Dictionary C#

PHOTO EMBED

Wed Apr 01 2020 08:37:24 GMT+0000 (Coordinated Universal Time)

Saved by @Anier #C# #c# #array #dictionary

for (int i = 0; i < n; i++)
{
    if (valCount.ContainsKey(x))
        valCount[x]++;
    else
        valCount[x] = 1;
}
content_copyCOPY

https://stackoverflow.com/questions/60966491/how-to-clear-item-not-input-when-count-frequency-use-dictionary-c-sharp