Display a linear combination: Difference between revisions
Content added Content deleted
(Added Algol 68) |
(→{{header|ALGOL 68}}: bugfix) |
||
Line 147: | Line 147: | ||
# second or subsequent term - separate from the previous # |
# second or subsequent term - separate from the previous # |
||
# and always add the operator # |
# and always add the operator # |
||
result +:= " " + IF c < 0 THEN "-" ELSE "+" FI " " |
result +:= " " + IF c < 0 THEN "-" ELSE "+" FI + " " |
||
FI; |
FI; |
||
# add the coefficient, unless it is one # |
# add the coefficient, unless it is one # |