求20到50之间,能被3和7同时整除的数的积 sum = 1 i = 50 while i >= 20 : if i % 7 == 0 and i % 3 == 0 : sum *= i i -= 1 print(sum)