This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

Documentation / Mathematica / Built-in Functions / Programming / Functional Programming /

Further Examples: FoldList

This gives a list of cumulative sums.

In[1]:=

Out[1]=

For the cumulative products you have to start with .

In[2]:=

Out[2]=

The function makeChange computes the minimum number of quarters, dimes, nickels, and pennies needed to make up the dollar amount d.

In[3]:=

In[4]:=

Out[4]=

In[5]:=