top of page

PROGRAMA PARA CALCULAR EL PROMEDIO DE N NUMEROS

Proceso Promedio
    Escribir "Ingrese la cantidad de datos";
    Leer N;
    acum<-0;
    Para i<-1 Hasta N Hacer
    Escribir "Ingrese el dato ",i,":";
    Leer dato;
    acum<-acum+dato;
    FinPara
    prom<-acum/N
    Escribir "El promedio es: ", prom;
FinProceso

bottom of page