Computer Science, asked by romi9232, 11 months ago

Given a whole number 'c', write a program that checks if its a fibonacci number

Answers

Answered by Anonymous
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 Shashank9999
0

HI friend..

hope it helps you

Attachments:
Similar questions