Talk:Loops/While: Difference between revisions
→DC: new section
Walterpachl (talk | contribs) m (→REXX: bad joke removed) |
(→DC: new section) |
||
Line 43:
<br> sorry for interfering.
<br>Could Siskus pls comment about his or her intentions here??? --[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 22:03, 30 October 2013 (UTC)
== DC ==
The DC solution looks like a DO-UNTIL loop rather than a WHILE.
<pre>
$ dc -e '_4[p2/d0<p]dspx'
-4
</pre>
A WHILE should test first and execute the body only if the test succeeded.
--[[User:Yeti|Yeti]] ([[User talk:Yeti|talk]]) 04:42, 26 November 2018 (UTC)
|