用python語言描述求100以內(nèi)即能被五整除又能被7整除的數(shù)之和?
sum = 0for x in xrange(100): if x % 5 == 0 and x % 7 == 0: sum += xprint 'the sum is: ', sum
用python語言描述求100以內(nèi)即能被五整除又能被7整除的數(shù)之和?
sum = 0for x in xrange(100): if x % 5 == 0 and x % 7 == 0: sum += xprint 'the sum is: ', sum