Answer
Z ← 0;
X ← 1;
repeat (Z ← Z + X;
X ← X + 1)
until (X = 6)
Work Step by Step
Converting the pseudocode routine
Z ← 0;
X ← 1;
while (X < 6) do
(Z ← Z + X;
X ← X + 1)
to an equivalent routine using a repeat statement
so it will be as follow
Z ← 0;
X ← 1;
repeat (Z ← Z + X;
X ← X + 1)
until (X = 6)