for i=1:5 s="" for j=1:i s=s+"*" end printf("%s\n",s) end