int HedgePos[6][2]; for(int i = 0; i <=1; i++) { if (i == 0) int value = 0; else value = 2; for (int j = 0; j <=5; j++) { HedgePos[j][i] = value; } }