Department numbers: Difference between revisions
Content added Content deleted
Not a robot (talk | contribs) (Add VTL-2) |
|||
Line 4,244: | Line 4,244: | ||
14 valid combinations |
14 valid combinations |
||
</pre> |
</pre> |
||
=={{header|VTL-2}}== |
|||
<lang VTL2>10 P=2 |
|||
20 S=1 |
|||
30 F=1 |
|||
40 #=0<((P=S)+(P=F)+(S=F)+(P+S+F=12=0))*110 |
|||
50 ?=P |
|||
60 $=32 |
|||
70 ?=S |
|||
80 $=32 |
|||
90 ?=F |
|||
100 ?="" |
|||
110 F=F+1 |
|||
120 #=F<8*40 |
|||
130 S=S+1 |
|||
140 #=S<8*30 |
|||
150 P=P+2 |
|||
160 #=P<8*20</lang> |
|||
{{out}} |
|||
<pre>2 3 7 |
|||
2 4 6 |
|||
2 6 4 |
|||
2 7 3 |
|||
4 1 7 |
|||
4 2 6 |
|||
4 3 5 |
|||
4 5 3 |
|||
4 6 2 |
|||
4 7 1 |
|||
6 1 5 |
|||
6 2 4 |
|||
6 4 2 |
|||
6 5 1</pre> |
|||
=={{header|Wren}}== |
=={{header|Wren}}== |