input""a for k=0 to a-1b=mod(k,a-1) for i=1to a-2-b?" ";next for i=1to b*2+1?"*";next ?next