Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
20
Task/Department-numbers/CLU/department-numbers.clu
Normal file
20
Task/Department-numbers/CLU/department-numbers.clu
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
start_up = proc ()
|
||||
po: stream := stream$primary_output()
|
||||
|
||||
stream$putl(po, "P S F\n- - -")
|
||||
for police: int in int$from_to_by(2,7,2) do
|
||||
for sanitation: int in int$from_to(1,7) do
|
||||
for fire: int in int$from_to(1,7) do
|
||||
if police~=sanitation
|
||||
& sanitation~=fire
|
||||
& police~=fire
|
||||
& police+sanitation+fire = 12
|
||||
then
|
||||
stream$putl(po, int$unparse(police) || " " ||
|
||||
int$unparse(sanitation) || " " ||
|
||||
int$unparse(fire))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end start_up
|
||||
Loading…
Add table
Add a link
Reference in a new issue