LU99.L03: Vielfache von 3 und 5
def main(): limit = int(input('')) total = 0 number = 1 while number < limit: if number % 3 == 0 or number % 5 == 0: total += number number += 1 print(total)
modul:m319:learningunits:lu99:loesungen:3und5mal
def main(): limit = int(input('')) total = 0 number = 1 while number < limit: if number % 3 == 0 or number % 5 == 0: total += number number += 1 print(total)