This course will become read-only in the near future. Tell us at community.p2pu.org if that is a problem.

Challenge - Fibonacci Series



Challenge 1 : The Fibonacci series

Info on Fibonacci series

 

Write a program to -

  • Generate the Fibonacci series to a given limit (say n), and print it.
  • Also output your result to a file in words.
  • Mention a few applications of the Fibonacci series.

 

The Fibonacci series is easy to generate. You have to convert each number in words (Eg. 1=one, 2=two, ..etc) when you output the result to the file.

 

Example :

If the limit is n=5, then the Fibonacci series to be printed is : 0,1,1,2,3

And, the output to the file should be :  zero, one, one, two, three

Task Discussion