What I want to do here is a loop inside a loop and I want to increment the inner loop by the value of the counter in the outer loop.
The error I get is "Not a statement", pointing at "b + s ) inside the inner for-loop
for( int s =1; s < 100; s++){
if( 100 % s == 0){
for( int b = 0; b < 100; b + s ){
locker[b] = locker[b] * (-1);
}
}
}
Is my goal achievable at all?
b + smeant to do?b += sinstead ofb + sb += s?locker[b] = locker[b] * (-1);tolocker[b] = -locker[b];