The Variable is made up of one or more words separated by spaces.
The resulting acronym cannot be more than 8 characters in length and must contain at least the first letter from each word in the input.
If the Input was "president" the output would be "presiden" not just the letter "p".
If the input was "president and chairperson" the output would be "pranch".
If the input was "chief cook and bottle washer" the acronym would be "ccabw" but
if the input was "cook and bottle washer" the acronym would be coanbowa.
Is there a relatively simple way to accomplish this using a for/to loop?
The resulting acronym cannot be more than 8 characters in length and must contain at least the first letter from each word in the input.
If the Input was "president" the output would be "presiden" not just the letter "p".
If the input was "president and chairperson" the output would be "pranch".
If the input was "chief cook and bottle washer" the acronym would be "ccabw" but
if the input was "cook and bottle washer" the acronym would be coanbowa.
Is there a relatively simple way to accomplish this using a for/to loop?



