Código
int main() { int alumnos, clases, i,j,n; cout << "digite el numero de alumnos" << endl; cin >> alumnos; cout <<"digite el numero de clases" << endl; cin >> clases; int matriz [alumnos][clases]; for (i=1; i<=alumnos ; i++){ for (j=1; j<=clases ; j++){ matriz[i][j] = n; cout << "por favor digite la nota de la clase" << j << endl; cin >> n; } } cout << "-------------------------------------" << endl; for (i=1; i<=alumnos ; i++){ for (j=1; j<=clases ; j++){ cout << matriz[i][j] << " " ; } cout << "\n" ; }