I want to print two distinct linked list both containing prize and size. THe result should look like this
--------BUY------------------SELL-----------------
200 1.22 100 2.00
100 1.10 40 3.00
300 4.90
48 5.75
I see two ways of doing this:
- with one printf statement, something like
printf("%5i %5f %5i %5f\n", buySize, buyPrice, sellSize, sellPrice);
If I loop through both lists at a certain point one of the lists is empty, I need to keep printing the empty left values or otherwise the sell values outline to the left. How can I do this
with two separate printf statements for both sets of colums but then I have the same issues.
Any printf wizzards that know how to do this?