Jump to content

Count how many vowels and consonants occur in a string: Difference between revisions

m
Line 666:
CFArrayRef strings = @[@"abcdefghijklmnop345qrstuvwxyz",
@"The quick brown fox jumps over the lazy dog",
@"The answer my friend is blowingblowin' in the wind"]
for index = 0 to len(strings) - 1
Line 681:
"abcdefghijklmnop345qrstuvwxyz" contains 5 vowels and 21 consonants
"The quick brown fox jumps over the lazy dog" contains 11 vowels and 24 consonants
"The answer my friend is blowingblowin' in the wind" contains 11 vowels and 2423 consonants
</pre>
 
416

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.