% Show "staggered" indices

n= 6;
for i=1:n
    for j=i+1:n
        for k=j+1:n
            fprintf('i=%d j=%d k=%d\n', i,j,k)
            pause
        end
    end
end
disp('done')