Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Department-numbers/BBC-BASIC/department-numbers.basic
Normal file
13
Task/Department-numbers/BBC-BASIC/department-numbers.basic
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
REM >deptnums
|
||||
max_dept_num% = 7
|
||||
dept_sum% = 12
|
||||
PRINT "police sanitation fire"
|
||||
FOR police% = 2 TO max_dept_num% STEP 2
|
||||
FOR sanitation% = 1 TO max_dept_num%
|
||||
IF sanitation% <> police% THEN
|
||||
fire% = (dept_sum% - police%) - sanitation%
|
||||
IF fire% > 0 AND fire% <= max_dept_num% AND fire% <> sanitation% AND fire% <> police% THEN PRINT " "; police%; " "; sanitation%; " "; fire%
|
||||
ENDIF
|
||||
NEXT
|
||||
NEXT
|
||||
END
|
||||
Loading…
Add table
Add a link
Reference in a new issue