octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #40392] function parameter not used in while l


From: Shushan Wen
Subject: [Octave-bug-tracker] [bug #40392] function parameter not used in while loop correctly
Date: Sun, 27 Oct 2013 23:33:31 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0

Follow-up Comment #4, bug #40392 (project octave):

Hi John,
The idea is, within each loop, c becomes the next Fibonacci number, i.e., it
increases each time, until x is reached, which is the condition the program
should leave the while loop. 

In my test, if I give x as 200 by calling "prob_002 200", ans=44. But if I
change x to 200 in line 14, I get ans=188. This is a mismatch. 

Thanks,

Shushan

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40392>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]