text cover

Data Abstraction and Problem Solving with C++

Walls and Mirrors

by Frank M. Carrano

Addison Wesley Logo

c02p115.cpp

Go to the documentation of this file.
00001 
00015 // Self-Test 1
00016 
00020 double product(const double anArray[], int n)
00021 {
00022    if (n == 1)
00023       return anArray[0];
00024    else
00025       return anArray[n-1] * product(anArray, n-1);
00026 }  // end product

Generated on Sun Aug 27 11:05:08 2006 for AWLogo by  doxygen 1.4.6