Because i want to know different ways to solve it, Can u write it in another way like using function?
A=; % print out frequent number in a array.
fprintf(“the most common character in the word is %d”, letter);
fprintf(“letter %d appeared %d times”, letter, count);
better have some comments.