Desarrollo Programas Estructurados

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Desarrollo Programas Estructurados - Presentation Transcript

    1. Capítulo 3 Desarrollo de Programas Estructurados
    2. Desarrollo de Programas Estructurados
      • Sentencias Repetitivas:
        • for …
        • while …
        • do.. while …
    3. Conceptos Básicos
      • Repetición Indefinida
      • No se conoce el número de veces que se realizará la repetición.
      • Se utiliza un dato "Centinela", la cual indica el "final de la ejecución de la repetición". Por ejemplo: presione 0 para finalizar el programa.
      • while (condicion)
      • {
      • sentencias;
      • }
      Sentencia Repetitiva: while
      • La sentencia for:
      • Es muy similar a:
      R elación entre el for y el while for (i=1; i<=10; i++) { /*cuerpo*/ } Aquí debe inicializarse la variable índice.
      • Inicialización de índice;
      • while (condicion)
      • {
        • sentencias;
        • incremento/decremento;
      • }
      • for (inicio; condicion; inc/dec)
      • {
        • sentencias;
      • }
      • i = 1;
      • while (i <= 10)
      • {
        • /*cuerpo*/
        • i++;
      • }
      Aquí debe realizarse el incremento de i.
    4. Tarea
      • Escriba un programa que muestre una tabla de multiplicar del 1 al 10, con el siguiente formato.
      1*1 1*2 1*3 1*4 .. 1*10 5*1 5*2 5*3 5*4 .. 5*10 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10

    + lichiclichic, 11 months ago

    custom

    105 views, 0 favs, 0 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 105
      • 105 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 0
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories