for i to 5 do for j to i do write( "*" ) od; print() od