Search for question
Question

Rewrite the following code fragment so that it uses a while loop to accomplish the same task.

Fig: 1

Fig: 2