cout edit, while loop edit