asked 150k views
3 votes
What must be done to translate a posttest loop expressed in the form

repeat:


(. . . )


until (. . . )


into an equivalent posttest loop expressed in the form


do:


(. . . )


while (. . . )

1 Answer

7 votes

Answer:

num = 0

while (num < 50):

if (num is Odd)

print(num is Odd)

num = num + 1

num = 0

repeat:

if (num is Odd)

print(num is Odd)

num = num + 1

until (num>=50)

answered
User WhiteRau
by
9.2k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.