Talk:Count how many vowels and consonants occur in a string: Difference between revisions
Content added Content deleted
(→Trivial task, but apparently not trivial enough: Flash of light!) |
|||
Line 35: | Line 35: | ||
next</lang> |
next</lang> |
||
:::: Notice that there's no 'if' after the 'else'. So I think the following expression is simply evaluated and the result discarded. Consequently, if the character isn't a vowel, 'cons' will always be incremented and he'll end up with 24 consonants. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 10:05, 27 July 2021 (UTC) |
:::: Notice that there's no 'if' after the 'else'. So I think the following expression is simply evaluated and the result discarded. Consequently, if the character isn't a vowel, 'cons' will always be incremented and he'll end up with 24 consonants. --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 10:05, 27 July 2021 (UTC) |
||
::::: Oh, that is fabulous! Your "it seems very unlikely there would be a bug in the language implementation for something as basic as this" now rings so loud. --[[User:Petelomax|Pete Lomax]] ([[User talk:Petelomax|talk]]) 15:18, 27 July 2021 (UTC) |
|||
== task wording == |
== task wording == |