Answer
We need to negate the condition.
Work Step by Step
The repeat statement runs until the condition is satisfied i.e. the condition is not initially satisfied and the repeat runs until the condition becomes true, but while loops runs only when the condition is satisfied hence we need to negate the condition of repeat to convert it to while loop.