Python-01题

2020-07-28  本文已影响0人  AoEliauk

Question:

>Write a program which will find all such numbers which are divisible by 7 but are not a multiple of 5,between 2000 and 3200 (both included).The numbers obtained should be printed in a comma-separated sequence on a single line.

注意:(both included) 要求 range(2000,3201)

Solution:

(2000,2301)之间能被7整除但是不能被5整除的数字最后一个是3199。

上一篇下一篇

猜你喜欢

热点阅读