Given a whole number 'c', write a program that checks if its a fibonacci number
Answers
Answered by
0
Explanation:
A simple way is to generate Fibonacci numbers until the generated number is greater than or equal to 'n'. ... A number is Fibonacci if and only if one or both of (5*n2 + 4) or (5*n2 – 4) is a perfect square.
Answered by
0
HI friend..
hope it helps you
Attachments:
Similar questions
Social Sciences,
6 months ago
Social Sciences,
6 months ago
Science,
6 months ago
Computer Science,
11 months ago
Biology,
1 year ago
Science,
1 year ago