This problem is in Contest(s) below:
Contest 1040:周六上午一组练习20230218
Contest 1042:循环结构过关习题集(一)