Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created January 16, 2021 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/2544fadcda28c25c31ecd7898fbf37c7 to your computer and use it in GitHub Desktop.
Save parzibyte/2544fadcda28c25c31ecd7898fbf37c7 to your computer and use it in GitHub Desktop.
// Declarar la cantidad de notas por si el valor cambia
const int cantidadNotas = 5;
double notas[cantidadNotas];
// Solicitar notas
for (int i = 0; i < cantidadNotas; i++)
{
cout << "Ingrese la nota " << i + 1 << ": ";
// Guardar en el arreglo
cin >> notas[i];
}
// Solicitar calificación de examen semestral
double calificacionExamenSemestral;
cout << "Ingrese calificación de examen semestral: ";
cin >> calificacionExamenSemestral;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment