top of page

PROGRAMA PARA CALCULAR EL PROMEDIO

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