Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 4, 2022 03:03
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/b12f48b7422551330b78af416f1d8cac to your computer and use it in GitHub Desktop.
Save parzibyte/b12f48b7422551330b78af416f1d8cac to your computer and use it in GitHub Desktop.
Algoritmo sin_titulo
aprobados <- 0
reprobados <- 0
mayor_nota <- 0
suma_notas <- 0
aprobatoria <- 70
Para i<-1 Hasta 10 Hacer
Escribir "Ingrese la nota del alumno #", i,": ";
Leer nota;
Si nota >= aprobatoria Entonces
aprobados = aprobados + 1;
SiNo
reprobados = reprobados + 1;
FinSi
suma_notas = suma_notas + nota;
Si nota >= mayor_nota Entonces
mayor_nota <- nota;
FinSi
FinPara;
Escribir "Estudiantes aprobados: ", aprobados;
Escribir "Estudiantes reprobados: ", reprobados;
Escribir "Nota mayor: ", mayor_nota;
Escribir "Promedio: ", suma_notas / 10;
FinAlgoritmo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment