iiitv / algos

Popular Algorithms and Data Structures implemented in popular languages
MIT License
1.07k stars 495 forks source link

Create FibonacciNumber.cpp #838

Open CoderAayush2104 opened 1 year ago

CoderAayush2104 commented 1 year ago

Fixes #826

By submitting this pull request I confirm I've read and complied with the below declarations.

CoderAayush2104 commented 1 year ago

The code is incorrect for the input N = 10 it should be 55 and not 34. It is a minor bug fix it. If you cannot then tell us we will help you.

Sir but for n = 10 answer is 34 as the series starts from 0. I have also attached the photo of the series.Please review my pull request. fibonacci

CoderAayush2104 commented 1 year ago

Please merge my request.