post your code.
I think in the main for loop you would have an if/else that checks if there is a modulo when you divide the index by 2?
here is a stack overflow answer that sort of does it but with a different source for the number:
post your code.
I think in the main for loop you would have an if/else that checks if there is a modulo when you divide the index by 2?
here is a stack overflow answer that sort of does it but with a different source for the number: