Answer the question
In order to leave comments, you need to log in
Fibonacci sequences how to make a program?
There is such a task: "For all numbers belonging to the range [100; 120], calculate and print those divisors that are members of the Fibonacci sequence."
You need to write a program in C#.
I may have misunderstood something, but if we take the first two numbers from the range of 100, 120, then these will be the numbers 100 and 101, respectively, which in total will already give 201. Does this mean that the problem has no solution, or am I missing something understand?
Answer the question
In order to leave comments, you need to log in
first you need to calculate all the fibbonacci numbers in the range from 1 to 120, then for each number from the range [100;120] check which fibbonacci numbers are its divisors (the divisors of the number are also 1 and the number itself, don't forget about it).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question