编写一个 while 循环判断输入的字符串对应的十进制数值是否是被8整除的数字,要求使用布尔变量 active 来控制循环结束的时机。 每次循环开始先使用print()语句一行输出字符串 "Please enter a positive integer!\nEnter 'quit' to end the program." , 如果读取到字符串等于'quit',则把布尔变量 active 的值更改为False, 否则将字符串转成整数,如果能被8整除即是8的倍数,则使用print()语句一行输出类似字符串'80 is a multiple of 8.'的语句, 否则使用print()语句一行输出类似字符串'4 is not a multiple of 8.'的语句, 然后本次循环结束,再次进入 while 循环中的条件测试。
输入描述:
保证每一行的输入只有数字或字符串'quit',且保证数字合法,范围在[1, 100]。


输出描述:
按题目描述进行输出即可。
示例1

输入

1
16
quit

输出

Please enter a positive integer!
Enter 'quit' to end the program.
1 is not a multiple of 8.
Please enter a positive integer!
Enter 'quit' to end the program.
16 is a multiple of 8.
Please enter a positive integer!
Enter 'quit' to end the program.
加载中...