i already posted answer
Except yours only works when n=3. What if n=8?
I tried Tux's with n=6, and it worked. Right on!
I really don't have the skills with initializing and populating arrays at this time, so I failed the challenge. Currently, I am working through the first chapter of K&R, relearning for loops. The last programming language I used (besides awk and JavaScript) was C++ in '97. So I kinda have to relearn.