How I get numbers to print out in increasing order from an equation that calculates distances with more than 1 answer?
How I get numbers to print out in increasing order from an equation that calculates distances with more than 1 answer?
Store them somewhere first (for example, in an array). Then sort them before printing.
That's a pretty good question. You should think about that. Then break it down into steps, in actual words. Don't try to program it. Describe the problem as best you can in words, in a series of steps to get it done. When you can do that, then think about turning each step into code.
Quzah.
Hope is the first step on the road to disappointment.