Strings

A text consisting of words separated by spaces or commas is specified. The text length is not more than 200 characters, any characters can be used. A word is a sequence of characters that does not contain a space (comma). Make an array of 4-character words, arranged alphabetically. Find the first numeric word and square its value.
A text consisting of words separated by spaces or commas is specified. The text length is not more than 200 characters, any characters can be used. A word is a sequence of characters that does not contain a space (comma). Make an array of 4-character words, arranged alphabetically. Find the first numeric word and square its value.


2002=40000

Am I right?


Alternative interpretation: the only 4-character "numeric" words in English would appear to be "four", "five", "nine".


Anyway, what have you tried before dumping your homework?
Last edited on
Topic archived. No new replies allowed.