EJERCICIOS DE EVALUACIÓN DE ALGORTIMOS

HALLAR EL CONTADOR DE FRECUENCIAS.



ALGORITMO 1.
Lea a,b,c  
 x=a+b  
 y=a+c  
 z=b*c  
 w=x/y-z  
 Escriba a,b,c,w  

ALGORITMO 2
 Lea n    
 s=0  
 i=1  
 While i<=n            
  s=s+1  
  i=i+1  
 End While  
 Escriba n,s  

ALGORTIMO 3
 Lea n,m  
 s=0  
 i=1  
 While i<=n    
   t=0  
   j=1  
   While j<=m  
     t=t+1  
     j=j+1  
   End While    
   s=s+t  
   i=i+1  
 End While  
 Escriba n,m,s  

ALGORITMO 4
Lea n  
 s=0  
 i=1  
 While i<=n    
   t=0  
   j=1  
   While j<= n  
     t=t+1  
     j=j+1  
   End While    
   s=s+t  
   i=i+1  
 End While  
 Escriba n,s  




2 comentarios:

  1. Buenísimo su Blog. , Me disculpa profe, estoy haciendo un blog de algoritmos pero para estudiantes de bachillerato. No sé si le chocará que estudie de su blog.
    Muy bueno. Muchas gracias.

    ResponderEliminar
    Respuestas
    1. No problem el conocimiento es para compartirlo. Espero le ayude mucho en sus labores.

      Eliminar