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