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

Add filter_rec() solution

parent 7e065c75
Loading
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.
Finish editing this message first!
Please register or to comment