Loops/While: Difference between revisions
Content added Content deleted
Line 486: | Line 486: | ||
let N be N / 2;</lang> |
let N be N / 2;</lang> |
||
=={{header|IWBASIC}}== |
=={{header|IWBASIC}}== |
||
{{incorrect|IWBASIC|-- <br> |
|||
* The program isn't consistent with the task's requirements, |
|||
* No ouput is (will be) produced. <br>}} |
|||
<lang IWBASIC> |
<lang IWBASIC> |
||
OPENCONSOLE |
|||
WHILE X<21 |
WHILE X<21 |
||
X=X+1 |
X=X+1 |
||
PRINT X |
|||
ENDWHILE |
ENDWHILE |
||
CLOSECONSOLE |
|||
Note: Spacing is not an issue. I just find the code to be more readable with spaces. |
Note: Spacing is not an issue. I just find the code to be more readable with spaces. |