Knapsack problem/Continuous: Difference between revisions

m
→‎version 1: added more whitespace to statements so that the comment points to the correct target.
m (→‎version 1: added whitespace.)
m (→‎version 1: added more whitespace to statements so that the comment points to the correct target.)
Line 2,594:
end /*j*/ /* [↑] display item. */
call sep; say ' /* [↓] $ suppresses trailing zeroes.*/
call sy left('total weight', nL,' "'"), $(format(totW,,d))
call sy left('total value', nL,' "'"), , $(format(totV,,d))
exit /*stick a fork in it, we're all done. */
/*──────────────────────────────────────────────────────────────────────────────────────*/