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'
Pseudocode that gets 2 numbers from user and prints them in order until the user enters the first value of the trio as negative.
1 answer