Jump to content

Department numbers: Difference between revisions

Add VTL-2
(Add VTL-2)
Line 4,244:
14 valid combinations
</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}}==
2,114

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.