Python-100-Days icon indicating copy to clipboard operation
Python-100-Days copied to clipboard

day05 百钱百鸡代码示例错误

Open FreeSoloCN opened this issue 5 years ago • 1 comments

for x in range(0, 21): for y in range(0, 34): z = 100 - 5 * x - 3 * y if x * 5 + 3 * y + z == 100 and z >= 0: print('公鸡: %d只, 母鸡: %d只, 小鸡: %d只' % (x, y, z))

FreeSoloCN avatar Jun 25 '21 08:06 FreeSoloCN

想一想为什么运算结果是一样的

zhengmingjiu avatar Jun 30 '21 01:06 zhengmingjiu