Here's to all the new programmers! I, too, am quite new to programming and want to help you guys be better at programming. I will post programming tasks from time to time and ask you guys to try and code something that can solve this. If you manage to, congratulations! If you don't, I will post the answer (mostly in C++ cause that's my dominant language) after a few days so you can analyze it.
For this task:
Plarry the Dinosaur needs to write a composition of lines. Being an evil teacher, even after Plarry has written his composition, now the teacher wants Plarry to output every third word! Being a lazy dinosaur, he wants you to help him. Make a code that given, and Plarry's composition, will output every rd word.
Congratz to those who have solved it, i'll post the answer 2 days later ^.^
Feel free to look at the answers below for reference, mine is quite similar to Daniel's but I feel that taking a look at the other languages would have benefits too!