text cover

Data Abstraction and Problem Solving with C++

Walls and Mirrors

by Frank M. Carrano

Addison Wesley Logo

c02p113a.cpp File Reference


Detailed Description

Computes the nth Fibonacci number with and iterative version of the rabbit function.

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

Definition in file c02p113a.cpp.

Go to the source code of this file.

Functions

int iterativeRabbit (int n)


Function Documentation

int iterativeRabbit int  n  ) 
 

Computes the nth term in the Fibonacci sequence, iterative version.

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

Definition at line 23 of file c02p113a.cpp.


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