text cover

Data Abstraction and Problem Solving with C++

Walls and Mirrors

by Frank M. Carrano

Addison Wesley Logo

c02p089.cpp File Reference


Detailed Description

Multiplying Rabbits (The Fibonacci Sequence)

Date:
29 May 2006
Chapter:
Chapter 2
Page:
Page 89
Version:
5.0

Definition in file c02p089.cpp.

Go to the source code of this file.

Functions

int rabbit (int n)


Function Documentation

int rabbit int  n  ) 
 

Computes a term in the Fibonacci sequence.

Precondition:
n is a positive integer.
Postcondition:
None.
Parameters:
n The given integer.
Returns:
The nth Fibonacci number.

Definition at line 21 of file c02p089.cpp.


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