I have two for loops
for(int i = 0; i < n; i++)
for(int j=0; j<n; j++) Magic[i][j] = 0;
Magic[(n-1)/2]=1;//Middle of first row
//(i,j) is the current position.
Iis there a way to do two four loops with a while or dowhile or any other loop function?