0
Find words with an even number of characters.
Find words with an even number of characters. help pls đđ
2 Answers
+ 4
Please give an input and output example.
An approach could be like this:
* check for each word its length
* if length % 2 == 0, we know the word has an even number of characters, if not, the number must be odd.
0
Read a string
Find the string length
If the length is evenly divisible by two (use remainder operator testing for zero)
Display the string