Which for loop isn't working, the i loop or the q loop? For one thing, if the typo above is the only typo, you have the return statement at the end of the "for i" loop. That means it will only go through that code block the first time, then return from the function. Maybe you should put the...