Hi friends,
How to print 10 numbers in Fibonacci serious aftet given number?
Like 13 21 34...
Thanks,
Printable View
Hi friends,
How to print 10 numbers in Fibonacci serious aftet given number?
Like 13 21 34...
Thanks,
What did you find when you searched the 'net? What have you tried? We can't do it for you.
For that, first you have to start from basic i.e. from the beginning. Obviously you know get the Fibonacci series starting from 0 and 1. Use that logic to get a Fibonacci series up to the given no. (from where you have to start from). Then using the given no. and the number behind the given number in the series, get the new series after the given no. up to 10 numbers.
Tip - one method is to use nested repetition and resetting the variable to hold the fibonacci value each iteration. ;)
Thanks friends..
i got it..
i used while loop inside of for loop..