Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void CountLetter(string[] diary)
- {
- int maxCount = 0;
- int counter = 0;
- for (int i = 0; i < diary.Length; i++)
- {
- foreach (char ch in diary[i])
- {
- if (ch=='e')
- {
- counter++;
- maxCount = counter;
- }
- }
- Console.WriteLine("За {0}-ия ден, буквичката се среща {1} пъти.",(i+1),maxCount);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement