Write a program that asks the user for 4 words (separated by a -
) and then displays the longest of the four words.
If multiple words are the longest, then choose the one that came first.
informaticawetenschappen-wiskunde-biologie-chemie
The longest of the four words is: informaticawetenschappen
Python-Java-C-Rust
The longest of the four words is: Python
Mazda-Toyota-Audi-Nissan
The longest of the four words is: Toyota
watermeloen-kruisboog-leguaan-magenta
The longest of the four words is: watermeloen