Little help with my assignment guys :)

I need to make a "simple" program (console application) in C#, User needs to enter a string (it can be anything), and series of letters (any letter from English alphabet), it can be one or more letters. Then a function must check how many times did each letter occurred in user string 🙂

I know how to get the sum of all occurrences of entered letters in a string, but i dont know how to get occurrences of each letter. Something like int numberOfA, numberOfB …

I get extra points if everything is done in a single function 🙂 Please help :))

by Tandi22 via /r/csharp

Leave a Reply