0

Find words with an even number of characters.

Find words with an even number of characters. help pls 🙌😊

20th Apr 2022, 6:48 PM
Developer #1
Developer #1 - avatar
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.
20th Apr 2022, 6:53 PM
Lisa
Lisa - avatar
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
20th Apr 2022, 9:36 PM
John Wells
John Wells - avatar