We use cookies to personalise content and advertisements and to analyse access to our website. Furthermore, our partners for online advertising receive pseudonymised information about your use of our website. cookie policy and privacy policy.
 
+0  
 
+1
108
1
avatar+46 


Write a Python program that asks a user to enter a positive integer (that is 3 or more), and then outputs the the Fibonacci number. For example, if the user enters 7, your program should output 13.

 Jul 13, 2019
 #1
avatar
+1

Go online and  learn or modify Python code to generate nth fibonacci number here:

 

https://www.geeksforgeeks.org/python-program-for-program-for-fibonacci-numbers-2/

 Jul 13, 2019

7 Online Users