Department numbers: Difference between revisions
Content added Content deleted
(Department numbers in QBasic and XBasic) |
(Department numbers in Asymptote) |
||
Line 723: | Line 723: | ||
6 4 2 |
6 4 2 |
||
6 5 1</pre> |
6 5 1</pre> |
||
=={{header|Asymptote}}== |
|||
<lang Asymptote>write("--police-- --sanitation-- --fire--"); |
|||
for(int police=2; police<=6; police+=2) { |
|||
for(int sanitation=1; sanitation<=7; ++sanitation) { |
|||
for(int fire=1; fire<=7; ++fire) { |
|||
if(police != sanitation && sanitation!=fire && fire!=police && police+fire+sanitation==12){ |
|||
write(" ", police, suffix=none); |
|||
write(" ", sanitation, suffix=none); |
|||
write(" ", fire); |
|||
} |
|||
} |
|||
} |
|||
}</lang> |
|||
=={{header|AutoHotkey}}== |
=={{header|AutoHotkey}}== |