sobhanbera / algorithms

Dive into algorithms, data structures, and competitive programming solutions in multiple languages. Active since Hacktoberfest 2020!
https://github.com/sobhanbera
MIT License
28 stars 88 forks source link

Fix for negative number case Fibonacci.cpp #265

Open danildenha opened 6 months ago

danildenha commented 6 months ago

If the input is less than 0, handle this case by simple if else