active = True
while active:
print("Please enter a positive integer!\nEnter 'quit' to end the program.")
num = input()
if num == 'quit':
active = False
else:
num = int(num)
if num % 8 == 0:
print(f'{num} is a multiple of 8.')
else:
print(f'{num} is not a multiple of 8.')

京公网安备 11010502036488号