Pseudocode

How do you write a pseudocode algorithm to get three integers from a user and print them in numerical order?

Comments

  • All pseudo-code is, is a form of programming without having to worry about syntax. So something along the lines of the following:

    [code]
    while numbers input is less than three:
    get input from user
    if input is a number
    append it to a list of numbers
    else
    continue

    sort list of numbers from least to greatest
    print list of numbers out to the user
    [code]
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion