1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Pseudocode Help - confused on what to do

Discussion in 'Programming' started by mbh92, Nov 26, 2011.

  1. mbh92

    mbh92 New Member

    Joined:
    Nov 26, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Have attempted to do try and code for the following situation but keep getting stuck and confusing myself.

    Have got 4 numbers
    first number has to be between 1 and 9 and if 0 is entered then there is a prompt that asks for the number to be between 1 and 9
    Then it asks for the next 3 numbers
    If all the numbers are the same then it asks the user to enter 4 new numbers
    After this has been met the number is stored
    The 4 numbers are then added together
    If the number is even then 0 is added on and if it is odd then 1 is added to make it even
    Then the origional number and new number is displayed
    e.g. 4 3 4 8
    4 3 4 8 1
     

Share This Page