Python 练习实例27
作者:互联网
题目:809XX=800XX+9XX 其中XX代表的两位数, 809XX为四位数,8XX的结果为两位数,9XX的结果为3位数。求XX代表的两位数,及809*XX后的结果。
# -*- coding: UTF-8 -*-
a = 809
for i in range(10,100):
b = i * a
if b >= 1000 and b <= 10000 and 8 * i < 100 and 9 * i >= 100:
print b,' = 800 * ', i, ' + 9 * ', i
标签:9XX,27,Python,809,两位数,XX,实例,100,809XX 来源: https://blog.csdn.net/qq_43558971/article/details/91347784