代码如下:
def Beishu(x,y,z):
if x >= 0 :
pass
else:exit()
for s in range(y,z):
if s % x == 0 and y < s < z:
print s,
Beishu(8,1,100)
输出效果
代码如下:
def Beishu(x,y,z):
if x >= 0 :
pass
else:exit()
for s in range(y,z):
if s % x == 0 and y < s < z:
print s,
Beishu(8,1,100)
输出效果