sum = 0 for i in range(1,50): if i%2==0 or i%3==0 or i%5==0: sum = sum + i print("Sum : ",sum)