Skip to content
Snippets Groups Projects
Commit 7e07ba37 authored by Markus Opolka's avatar Markus Opolka
Browse files

Add filter_rec() solution

parent 7e065c75
No related branches found
No related tags found
No related merge requests found
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment