The Fibonacci Series is 0, 1, 1, 2, 3, 5, 8, 13, 21, ... Printing the Fibonacci Numbers is a very trivial task for any person familiar with the basics of programming. But what happens when you have to print very large Fibonacci numbers? Then C/C++ or even languages like MATLAB or Mathematica may not have sufficiently large data types to store the results. In this C/C++ Program I have used an array to store Fibonacci Numbers. The C Program also stores the results into a text file called fib.txt.
Figure Below Shows a Sample Output
No comments:
Post a Comment