I\'m currently building a program and I\'m trying to make my code a bit shorter. It\'s just a for-loop repeating itself 15 times. Can someone show me how they would do it and ex
You need to think about what loops are for.
This is trivial to refactor, really. You have the exact same code repeating 16 times. So:
for (int k = 0; k < 16; k++) { // your inner, repeating loop here }