Generation

generate functionFri, 26 May 2023

Elabore un programa en que solicite al usuario el ingreso del horario de estudios de un joven, donde las columnas representan 5 días de la semana Lunes a Viernes) y las filas representan 4 posibles horas de dictado

#include <iostream> #include <iomanip> using namespace std; int main() { int i, j, matriz[4][5]; cout << "Ingrese elementos de la matriz: \n"; for (i = 0; i < 4; i++){ for (j = 0; j < 5; j++){ cout << "Ingrese un numero [" << i << "][" << j << "]: "; cin >> matriz[i][j]; } } cout << "La matriz ingresada es: \n"; for (i = 0; i < 4; i++){ for (j = 0; j < 5; j++){ cout << setw(3) << matriz[i][j] << " "; } cout << endl; } return 0; }

Want to kickstart your project?Use the new AI Studio to create your code