It was suppose to be displayed in a table form but it displays in one line in the console after compilation : #include <iostream>
using namespace std;

int main (){
	
	int array1[5][5]={{1,1,1,1,0},{1,1,1,0,2},{1,1,0,2,2},{1,0,2,2,2},{0,2,2,2,2}};
	
	for ( int row  = 0 ; row < 5 ; row ++){
		for ( int col = 0 ; col < 5 ; col ++)
		{
		
		cout<< array1[row][col]<< " ";
	}
	}
	 cout<<endl;
		
}