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

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

[Octave-bug-tracker] [bug #59616] nested while cant detect parameter cha


From: anonymous
Subject: [Octave-bug-tracker] [bug #59616] nested while cant detect parameter change
Date: Thu, 3 Dec 2020 19:15:25 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36

URL:
  <https://savannah.gnu.org/bugs/?59616>

                 Summary: nested while cant detect parameter change
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Fri 04 Dec 2020 12:15:23 AM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Bill
        Originator Email: billygeo24@gmail.com
             Open/Closed: Open
                 Release: 6.1.0
         Discussion Lock: Any
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

I have the following piece of code:

u = 1;
v = 1;
while(u<=144)
  u # works here
  while(v<=176)
    for k = 0 : 15
      for l = 0 : 15
         u
      end
    end
    v = v + 16;
  end
  u = u + 16;
end

The problem is that when I print u inside the for loop I get
u = 1 every time. I run the program in the online compiler but I got the same
result. 




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59616>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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