the user has to enter a sentence that contains at least 3 dashes, cut the sentence between the first and the second dash and shows the most repeated character in this sentence.
i used a do while and cut the sentence successfully, but my problem is when i found 2 most repeated characters. For example 5 'f' and 5 'd'. the program gives me the letter with the least ASCII code, it gives me 'd'. And please, stick to the language i am using because i am not that advanced.