Write a program that reads a sequence of words and prints how many times the last word appears.
Input starts with a natural number that indicates how many words are coming. Then, there are words.
Your program must print, in a line, how many times appears the last word of the sequence.
Use recursion (not tables).
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T12:08:30.535Z
© Jutge.org, 2006–2026.
https://jutge.org