News

In order to familiarize ourselves with the algorithms provided by the stl, we aren't allowed to use any explicit loop constructs (while, for, or even recursive loops) in our current assignment ...
Also, a recursive algorithm can always be implemented iteratively ... I say this because a while loop is equivalent to a tail recursive function and recursive functions need not be tail recursive.
Yes/No’ say what the total is This algorithm would keep iterating until the answer at the end of the loop is ‘No’, ie it will continue to iterate WHILE there are more numbers to add.