|
Yeah, I think I discovered why the program is reporting that the longest word was "Office". Its comparing character codes. The letter 'O' comes after the letter 'M' and thus has a greater ASCII code.
But is there a way to write the program so it will show which word is the longest(has the most characters in it)?
|