Answers for "how to use loop in 2d array"

1

how to use loop in 2d array

for (int row = 0; row < board.length; row++) { 
	for (int col = 0; col < board[row].length; col++) { 
    	board[row][col] = row * col; 
        } 
    }
Posted by: Guest on February-22-2021

Code answers related to "how to use loop in 2d array"

Browse Popular Code Answers by Language