viernes, 10 de marzo de 2017

pseudocódigo y suma de números enteros entre 1 y 10

  • Suma de números enteros entre 1 y 10
PSEUDOCODIGO
INICIO
|
|          Suma=0;
|          Mientras (CONTA MENOR o =10)
|          |
|          |   conta+1
|          |   suma+conta
|          |
|          |FIN MIENTRAS
|
FIN


ORDINOGRAMA

                                            INICIO
                                                 |
                                                 |
                                             suma=0
                                                     conta=0
                                                           |
                                                           |
                                   ----------->   Conta>=10__________NO____
                                  |                        |                                             |
                                  |                        |                                             |
                                  |                    SI                                      Imprimir suma
                                  |                        |                                             |
                                  |                suma=suma+conta                     |
                                  |                 conta=conta+1                          |
                                  |                         |                                            |
                                  |                         |                                            |
                                  |______________|                                           FIN

No hay comentarios:

Publicar un comentario