answersLogoWhite

0

what? Assuming you wanted an algorithm to find the nth number in the Fibonacci sequence:

double Fib(int i)

{

double x = 1;

double y = 1;

if (i

User Avatar

Wiki User

16y ago

Still curious? Ask our experts.

Chat with our AI personalities

JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve

Add your answer:

Earn +20 pts
Q: How do you calculate the nth term in the Fibonacci sequence using C?
Write your answer...
Submit
Still have questions?
magnify glass
imp