Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Department-numbers/Ring/department-numbers.ring
Normal file
17
Task/Department-numbers/Ring/department-numbers.ring
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
sanitation= 0
|
||||
see "police fire sanitation" + nl
|
||||
|
||||
for police = 2 to 7 step 2
|
||||
for fire = 1 to 7
|
||||
if fire = police
|
||||
loop
|
||||
ok
|
||||
sanitation = 12 - police - fire
|
||||
if sanitation = fire or sanitation = police
|
||||
loop
|
||||
ok
|
||||
if sanitation >= 1 and sanitation <= 7
|
||||
see " " + police + " " + fire + " " + sanitation + nl
|
||||
ok
|
||||
next
|
||||
next
|
||||
Loading…
Add table
Add a link
Reference in a new issue