I was trying to solve https://www.spoj.com/problems/STRHH/ As a part of my solution, I wanted to have variables like word1, word2, word3 and so on till wordt.
I can do it easily using loops, but what syntax do I need in order to initialise variables following this specific pattern? Specifically, where do I mention index number in my variable?