Control structure 3

completed while assignment