Department numbers: Difference between revisions
Content added Content deleted
(→{{header|Vlang}}: Rename "Vlang" in "V (Vlang)") |
(Department numbers in Chipmunk Basic) |
||
Line 877: | Line 877: | ||
6 4 2 |
6 4 2 |
||
6 5 1</pre> |
6 5 1</pre> |
||
==={{header|Chipmunk Basic}}=== |
|||
{{works with|Chipmunk Basic|3.6.4}} |
|||
<syntaxhighlight lang="qbasic">10 CLS |
|||
20 PRINT "--police-- --sanitation-- --fire--" |
|||
30 FOR police = 2 TO 7 STEP 2 |
|||
40 FOR fire = 1 TO 7 |
|||
50 sanitation = 12-police-fire |
|||
60 IF sanitation >= 1 AND sanitation <= 7 THEN |
|||
70 PRINT TAB (5)police TAB (18)fire TAB (30)sanitation |
|||
80 endif |
|||
90 NEXT fire |
|||
100 NEXT police</syntaxhighlight> |
|||
{{out}} |
|||
<pre>Same as FreeBASIC entry.</pre> |
|||
==={{header|Run BASIC}}=== |
==={{header|Run BASIC}}=== |