![]() |
logic for (FOR LOOP) falling - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html) +--- Forum: HP Prime (/forum-5.html) +--- Thread: logic for (FOR LOOP) falling (/thread-7458.html) |
logic for (FOR LOOP) falling - compsystems - 12-23-2016 02:42 PM Hello, Running a TEST program that had previously done no longer works, something was changed? The logic of the step for FOR falling is contrary to other languages, Why? for n from 3 to 1 step 1 do // hp-p_pl for n from 3 to 1 step -1 do // other languages for (i=3;i>=1;i--) //c++ For this case, I think it is correct and logic for n from 3 downto 1 do for n from 3 downto 1 step 1 do PHP Code: export FORtest() |