Asked by Kim
Pseudocode that gets 2 numbers from user and prints them in order until the user enters the first value of the trio as negative.
Answers
Answered by
Steve
i=0
while (i>=0) {
read i,j
print i,j
}
Not sure whether "in order" means in the order given, or smallest first. If you need to sort them, I'm sure you can fill in the missing step.
You also say you want 2 numbers, then talk about the "trio." ???
With computers, you gotta say what you mean. Doesn't hurt much with people, either... Just sayin'
while (i>=0) {
read i,j
print i,j
}
Not sure whether "in order" means in the order given, or smallest first. If you need to sort them, I'm sure you can fill in the missing step.
You also say you want 2 numbers, then talk about the "trio." ???
With computers, you gotta say what you mean. Doesn't hurt much with people, either... Just sayin'
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.