#include <iostream>
using namespace std;

int main() {
    double calificaciones[5];
    double suma = 0.0;
    double promedio;
    const double NOTA_APROBATORIA = 60.0; 


    cout << "Ingrese las calificaciones de las cinco materias:" << endl;
    for (int i = 0; i < 5; ++i) {
        cout << "Materia " << (i + 1) << ": ";
        cin >> calificaciones[i];
        suma += calificaciones[i]; 
    }

    promedio = suma / 5.0;

    cout << "El promedio de las calificaciones es: " << promedio << endl;

    if (promedio >= NOTA_APROBATORIA) {
        cout << "El estudiante aprobó." << endl;
    } else {
        cout << "El estudiante reprobó." << endl;
    }

    return 0;
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: