修改为do while或嵌套循环

Edit this to a do while or nested loop

嗨,有人可以帮我将代码更改为do while或嵌套循环吗?