6.3 Robots6 Assignments6.1 Getting Started6.2 Fibonacci Series

6.2 Fibonacci Series

Write a program that prints out the first 21 elements in the Fibonacci Series.

This program will probably use the for loop.

The series starts with a zero(0) and a one(1). Each subsequent number is the sum of the previous two numbers.

So:

Number the first number in the series, the zero with a zero. With this numbering LCD(Fn,Fm) = F(LCD(n,m)).

Your program need to print the following:

Other requirements:

Hints:
  1. Do NOT use recursion. Write an iterative program.

Study areas:

Extra credit:

Make sure that your program run sand prints the twenty-first Fibonacci number. Mark your output with:

Please turn your lab in to Pima Community College employee in Santa Rita Building room A-115. Ask them to place it into the burgundy colored "CIS265 -- C Programming" folder in Louis Taber's mailbox.
Instructor: ltaber@pima.edu ** My new Home at GeoApps in Tucson ** The Pima College Site

6.3 Robots6 Assignments6.1 Getting Started6.2 Fibonacci Series