Ask your own question, for FREE!
Computer Science 8 Online
OpenStudy (anonymous):

Okay does ne1 know how to do fibbonaci series in C++ can anyone explain me the logics behind them need desperate help !!!!

OpenStudy (anonymous):

so i gotta print the series A AB ABC ......

OpenStudy (anonymous):

You will need to learn about using recursion functions, ie a function that is calling himself. It will be something like this. recursion method unsigned long fibonacci(unsigned long number) { if ((number==0)||(number==1)) return number; else return fibonacci(number-1)+fibonacci(number-2); //recursion step } You'll get all the available help and explanations in the ("C++ How to program", Sixth edition) ebook from page 294 to 301.

OpenStudy (anonymous):

You will also have to learn how to concantenate and copy strings. strcpy(a,b) //Copy String strcat(a,b) //Concatenate String C+ How to program (Pg 454 to 458)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!