Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

while loop for fibonacci series

fibonacci loop

  • Please log in to reply
14 replies to this topic

#13 jackson6612

jackson6612

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 285 posts

Posted 22 May 2011 - 10:19 AM

It rolls over to the largest negative.


By the way, strictly speaking in terms of mathematics, won't it be the smallest negative rather than the largest?:confused: Because -10 is smaller than -1?

Thanks.
  • 0
I'm an outright beginner, learning C++. Using Win XP Pro and Code::Blocks. Be nice to me, please.:)

#14 fkl

fkl

    CC Devotee

  • Senior Member
  • PipPipPipPipPipPip
  • 417 posts

Posted 22 May 2011 - 01:10 PM

You are right about the smallest negative :) It was a mere flow of explanation. I am sure we meant largest absolute value with a negative sign
  • 0

#15 jackson6612

jackson6612

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 285 posts

Posted 22 May 2011 - 01:25 PM

You are right about the smallest negative :) It was a mere flow of explanation. I am sure we meant largest absolute value with a negative sign


Thank you, Fayyaz, for clearing out the confusion!;)

Best wishes
Jackson
  • 0
I'm an outright beginner, learning C++. Using Win XP Pro and Code::Blocks. Be nice to me, please.:)





Also tagged with one or more of these keywords: fibonacci, loop

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download