Twelve statements: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: minor simplification) |
|||
Line 2,684: | Line 2,684: | ||
function s12() t=0 for i=1 to 11 do t+=s[i]='1' end for return t=4 end function |
function s12() t=0 for i=1 to 11 do t+=s[i]='1' end for return t=4 end function |
||
sequence r = |
sequence r = {s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12} |
||
for b=1 to 12 do |
|||
r[b] = routine_id(sprintf("s%d",b)) |
|||
end for |
|||
for i=0 to power(2,12)-1 do |
for i=0 to power(2,12)-1 do |
||
s = sprintf("%012b",i) |
s = sprintf("%012b",i) |