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.txt
  • Last modified: 2023/11/13 08:56
  • by 127.0.0.1