Prepare a c++ program
board[4][3] = { {2,3,1},{15,25,13},{20,4,7},{11,18,14}};
#include <iostream>
using namespace std;
int main()
{
int board[4][3] = { {2,3,1},{15,25,13},{20,4,7},{11,18,14}};
for(int i=0;i<4;i++){
for(int j=0;j<3;j++){
cout<<"Board["<<i<<"]"<<"["<<j<<"] = "<<board[i][j]<<"\n";
}
}
return 0;
}
Comments
Leave a comment