Skip to content

ShonHarsh/Python-Fibonacci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Banner

Fibonacci Sequence

In mathematics, the Fibonacci Sequence is a sequence in which each number is the sum of the two preceding ones.

This is a code exercise and I solve it in two ways.

  1. The first method is a while loop. This prints all the digits up to the input number.
  2. The second method is using recursion. This prints the n'th number.