Extienden el concepto de los arreglos a múltiples dimensiones. Una matriz bidimensional, por ejemplo, se usa comúnmente para organizar datos en filas y columnas, permitiendo operaciones complejas como multiplicaciones de matrices o representaciones gráficas.
Ejercicio 1.
#include <iostream>
using namespace std;
main() {
const int ROW = 2, COL = 3;
int notas[ROW][COL];
for(int i = 0; i < ROW; i++){
cout << "NOTAS CICLO " << i+1 << endl;
for( int j = 0; j < COL; j++){
cout << "Ingrese nota " << j+1 << " : ";
cin >> notas[i][j];
}
cout << endl;
}
cout << "Las notas ingresadas fueron: " << endl;
for(int i = 0; i < ROW; i++){
for(int j = 0; j < COL; j++){
cout << notas[i] [j] << " ";
}
cout << endl;
}
return 0;
}