#include <iostream>
#define ALUMNOS 35
using namespace std;
int main() {
int j,i=0,edad,nota,aprobados=0;
int Edades[ALUMNOS],Notas[ALUMNOS];
int c=0,desaprobados=0;
float porcentaje;
while (i < ALUMNOS) {
cout << "Edad del estudiante (6-12): ";
cin >> edad;
if ((edad < 6) || (edad > 12))
continue;
else
Edades[i] = edad;
cout << "Nota del estudiante (0-20): ";
cin >> nota;
if ((nota < 0) || (nota > 20 ))
continue;
else {
Notas[i] = nota;
i++;
}
cout << endl;
}
//reporte
for (j=0; j<i; j++) {
if ((Notas[j] > 11) && ((Edades[j] >= 10) && (Edades[j] <= 12)))
aprobados++;
if (Notas[j] > 10)
c++;
if (Notas[j] <= 10)
desaprobados++;
}
porcentaje = (desaprobados * 100) / float(ALUMNOS);
cout << "Cantidad de aprobados entre 10 y 12 anios: " << aprobados << endl;
cout << "Cantidad de alumnos que superaron la nota 10: " << c << endl;
cout << "Porcentaje de alumnos desaprobados: " << porcentaje << "%";
return 0;
}