text cover

Data Abstraction and Problem Solving with C++

Walls and Mirrors

by Frank M. Carrano

Addison Wesley Logo

c01p052.cpp

Go to the documentation of this file.
00001 
00022 int factorial(int n)
00023 {
00024    int fact = 1;
00025 
00026    for (int i = n; i > 1; --i)
00027       fact *= i;
00028 
00029    return fact;
00030 } // end factorial

Generated on Sat Aug 26 19:58:10 2006 for AWLogo by  doxygen 1.4.6