In this task you can enter whatever sentence, words separated only with spaces, thats the task given to me, and then program counts how many words ar there in a sentence and then should find longest word. Basicly im done so far as for counting the words, dont want enyone to tell me the code, but just give advice, in which direction to look, to find the longest word. I shoud somehow get function to check each word.
I believe I should use find function to find position of spaces, but somehow im stuck to create the cycle, so the function would continue to look for tem and besides after the last word there is no space.