as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
suppose you need to write a program that sorts numbers in ascending order. write the pseudocode for the program.
user
<step1: read in a set of numbers from user.>
<step2: initialize a loop that will iterate over each number input>
<step3: for each number, iterate over the rest of the numbers and compare them.>
<step4: if the number is larger than the current number, swap them >
<step5: repeat the process until all numbers are in ascending order.>
assistant