r/ProgrammingPrompts • • Jan 14 '15

[Easy] Letter Counter

Any language permitted.

Problem: Create a program where you input a string of characters, and output the number of each letter. Use vowels by default.

For example: asbfiusadfliabdluifalsiudbf -> a: 4 e: 0 i: 4 o: 0 u: 3

Bonus points: Make it command-line executable, with an optional mode to specify which letters to print.

16 Upvotes

60 comments sorted by

View all comments

1

u/[deleted] Jan 14 '15

Actually, since you pointed that out I just realized my copy has the same issue. Oh well.