Edit:While loop

edited while loop