0

How to write a program to input ten numbers into a tuple. Display all the fabonacci terms present in the tuple.

6th Dec 2022, 2:17 PM
Sipra Paul
Sipra Paul - avatar
1 ответ
0
Hi, Sipra Paul ! So only if the the inputed value is a Fibonacci number, you will put its terms that built upp the number in a tuple? So the tuple will take at most 20 terms? Or do you first put ten number in a tuple, and then for those numbers that are Fibonacci numers, put the terms that build up the Fibonacci number in a new tuple? Like: 10, 13, 20, 81, …, 195013 -> (5, 8, 24, 44, …, 5768, 10609)
6th Dec 2022, 2:40 PM
Per Bratthammar
Per Bratthammar - avatar