Display a linear combination: Difference between revisions

(Added Algol 68)
Line 147:
# second or subsequent term - separate from the previous #
# and always add the operator #
result +:= " " + IF c < 0 THEN "-" ELSE "+" FI + " ";
FI;
# add the coefficient, unless it is one #
3,045

edits