Skip to content
Snippets Groups Projects
vielfach_rec.py 228 B
Newer Older
  • Learn to ignore specific revisions
  • def filter_rec(n, m):
    
        if n > m:
            return
    
        if n % 2 == 0:
            print("{0} ist Vielfaches von zwei".format(n))
        if n % 5 == 0:
            print("{0} ist Vielfaches von fünf".format(n))
    
        filter_rec(n + 1, m)