1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Stackoverflow]

Discussão em 'StackOverflow' iniciado por fdantas, Fevereiro 3, 2021.

  1. fdantas

    fdantas Administrator Moderador

    Can anyone help me understand how to display the following pattern using a Progress 4gl frame:
    1
    1 2
    1 2 3
    1 2 3 4
    1 2 3 4 5.

    I have tried like this:

    DEFINE VARIABLE a AS INTEGER NO-UNDO.
    DEFINE VARIABLE b AS INTEGER NO-UNDO.
    DO
    a =1 TO 5 WITH FRAME f:
    DO
    b = 1 TO a WITH FRAME f:
    DISPLAY a SPACE SKIP.
    PAUSE.
    END.
    END.


    /* while displaying the answer is overwritten, how do I display the answer side by side? */

    Continue reading...

Compartilhe esta Página