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


  • Fer said:

    I've created dicts to translate any number up to 1000, the output will have a number, carriage return separated.

    http://pastebin.com/vmdfZFFs

    on Nov. 13, 2013, 10:44 a.m.