Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Department-numbers/PureBasic/department-numbers.basic
Normal file
18
Task/Department-numbers/PureBasic/department-numbers.basic
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
OpenConsole()
|
||||
PrintN("--police-- --sanitation-- --fire--")
|
||||
|
||||
For police = 2 To 7 Step 2
|
||||
For fire = 1 To 7
|
||||
If fire = police:
|
||||
Continue
|
||||
EndIf
|
||||
sanitation = 12 - police - fire
|
||||
If sanitation = fire Or sanitation = police: Continue : EndIf
|
||||
If sanitation >= 1 And sanitation <= 7:
|
||||
PrintN(" " + Str(police) + #TAB$ + #TAB$ + Str(fire) + #TAB$ + #TAB$ + Str(sanitation))
|
||||
EndIf
|
||||
Next fire
|
||||
Next police
|
||||
|
||||
Input()
|
||||
CloseConsole()
|
||||
Loading…
Add table
Add a link
Reference in a new issue