C++ examples for STL Algorithm:accumulate
Click the following links for the tutorial for STL Algorithm and accumulate.