Help Regarding Pseudo code [urgent please]

Discussion in 'Programming' started by 123funda, Dec 15, 2009.

  1. #1
    Please how i write this algorithms in using pseudo code using general english
    1
    12
    123
    1234
    12345

    and also

    *
    **
    ***
    ****
    *****
    i know only one thing that nested loop will be use for these but how i don't know please write these both the programs
     
    123funda, Dec 15, 2009 IP
  2. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    To print numbers
    #define NUMBER_OF_LEVELS 5
    
    for i = 1 to NUMBER_OF_LEVELS
        for j = 1 to i
            printf j
        next j
        printf '\n'
    next i
    Code (markup):
    To print stars
    #define NUMBER_OF_LEVELS 5
    
    for i = 1 to NUMBER_OF_LEVELS
        for j = 1 to i
            printf "*"
        next j
        printf '\n'
    next i
    Code (markup):
     
    NeoCambell, Dec 15, 2009 IP
  3. 123funda

    123funda Member

    Messages:
    462
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    30
    #3
    thanks A lot to help me
     
    123funda, Dec 28, 2009 IP