#include #include using namespace std; int main() { double B[3][5]; //Let's initiaize all cells of the 2D array for (int r = 0; r < 3; r++) { for (int c = 0; c < 5; c++) { B[r][c] = 0; } } B[2][3] = 3.14; B[0][1] = 5.6; B[2][2] = 15.1; B[0][4] = 3.4; B[1][0] = 8.8; //Let's print them out: for (int r = 0; r < 3; r++) { for (int c = 0; c < 5; c++) { cout << B[r][c] << " "; } cout << endl; } return 0; }