May 2021 1 0 Report
Easy Intro C++ Help Please?

Hey, I'm not new to C++ I just can't write this recursively lol. It's easy using iteration but I just don't know how using recursive techniques. Could you plz help! :)

Write a program that when given a positive integer i, uses recursion to compute the "i"th entry of the Fibonacci sequence. The Fibonacci sequence is defined by

f0 = 0

f1 = 1

and

fi = fi-1 + fi-2, for i > 1

0,1,1,2,3,5,8 etc...

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2025 Q2A.ES - All rights reserved.