Infinite Loop using While

In reply to cool_cake20:

Dear cool_cake20 - your solution can also work, but I dont see its clear benefit over the while statement usage.

Vinay Jain, please see the waves screenshot in this link:

Simulation Waves