hw07 for,while,dowhile loops