for i=0 to 10
for j=0 to 5
for k=0 to 2
for m=0 to 1
if i+j+k+m=20 then
print i,j,k,m
end if
next m
next k
next j
next i