tag:blogger.com,1999:blog-8712770457197348465.post6210084298844921786..comments2024-03-29T05:54:46.190-07:00Comments on Javarevisited: How to Print Fibonacci Series in Java without Recursion - Coding Problem for Beginnersjavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-8712770457197348465.post-86626001067819637752017-03-05T06:47:45.688-08:002017-03-05T06:47:45.688-08:00for(int i=0; i <= number; i++)
what is that sy...for(int i=0; i <= number; i++)<br /><br />what is that syntax "i <= number"<br />it shows error<br />do compile your code before postingsumanhttps://www.blogger.com/profile/14906699615466397391noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-89192995400229942932017-02-13T09:21:47.714-08:002017-02-13T09:21:47.714-08:00Thanks :)Thanks :)Anonymoushttps://www.blogger.com/profile/14499999545371931383noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-55407344599768240702016-06-13T04:47:53.838-07:002016-06-13T04:47:53.838-07:00@dhinesh, how about calculating Fibonacci number t...@dhinesh, how about calculating Fibonacci number till 1000, put them an array and then only print the odd ones?javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-46092803225011509362016-06-12T09:03:24.512-07:002016-06-12T09:03:24.512-07:00hi
how to print odd fibonacci number betwwen 10 to...hi<br />how to print odd fibonacci number betwwen 10 to 1000<br />Anonymoushttps://www.blogger.com/profile/17016875132319813840noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-67807849176811913712015-07-07T08:19:57.280-07:002015-07-07T08:19:57.280-07:00Thanks @Anonymous and @allan, the logic and output...Thanks @Anonymous and @allan, the logic and output was indeed incorrect, corrected it now. Looks like I had created my own Fibonacci series for this post :) Thank you guys for pointing it out. javin paulhttps://www.blogger.com/profile/15028902221295732276noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-36820680568748269092015-07-06T16:19:06.272-07:002015-07-06T16:19:06.272-07:00int second = 1 (not 2)
Otherwise good post as alwa...int second = 1 (not 2)<br />Otherwise good post as alwasys.allanhttps://www.blogger.com/profile/08481490823950624083noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-9990079626409670852015-07-06T13:13:23.201-07:002015-07-06T13:13:23.201-07:00The output is incorrect.
The Fibonacci series is::...The output is incorrect.<br />The Fibonacci series is:: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, ...<br /><br /> n : 0 1 2 3 4 5 6 7 8 9 10 ...<br />f(n): 0 1 1 2 3 5 8 13 21 34 55 ...Anonymousnoreply@blogger.com