0 Comments
Here's the Python code to solve the problem using a do-while loop:
n = int(input("Enter a number: "))
num = 13
print(num, end=" ")
while True:
num += 6
if num > n:
break
9.4m questions
12.2m answers