I am stuck on this task. I am supposed to do an oral examination about this task on Wednesday. I need your help, Thanks, Samuel
"The Fibonacci sequence is 1,1,2,3,5,8,13,21,34, ... A new number is created by adding the last two of them. Example: 1 + 1 = 2, 1 + 2 = 3, 2 + 3 = 5, 3 + 5 = 8, etc.Write a program where the user enters a positive number N and a float number E (bigger than 0 but less than one) then the program will calculate which is the smallest number P in the fibonacci series that result in N/P
Aucun commentaire:
Enregistrer un commentaire