While

WMA link


While[test, body]

evaluates body as long as test evaluates to True.

While[test]

runs the loop without any body.

Compute the GCD of two numbers:

Which