5

Estructuras repetitivas

Embed Size (px)

Citation preview

EJEMPLOEJEMPLO EJEMPLOEJEMPLOEJEMPLOEJEMPLO

MAPA

Desde variable(v)= vi Hasta vf hacer                         For variable (v)= vi  To  vf  Do    <acciones>                                                                     <acciones>           :                                                                                          Fin_desde                                                               Donde:        v:    Variable índice        vi, vf: Valores inicial y final de la variable

MAPA

do              {                  función1 (a, b, c) ;                  función2 (a, b) ;                  printf (“otro cálculo (S/N) ? \ n “) ;                  opción = getchar () ;              }            while (opción ==’S’) ;   /* Cuando no se requiera repetir el ciclo se contestará con N y                                                           saldremos del mismo */    ...º

MAPA