text cover

Data Abstraction and Problem Solving with C++

Walls and Mirrors

by Frank M. Carrano

Addison Wesley Logo

c02p121.cpp

Go to the documentation of this file.
00001 
00015 // Exercise 23
00016 
00017 int gcd(int a, int b)
00018 {
00019    if (a % b == 0)  // base case
00020       return b;
00021    else
00022       return gcd(b, a % b);
00023 }  // end gcd

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