/media/sda-magnetic/david/Dok-15-2023-11-27/fernuni-hagen/cs-i-ii/old-cs-2-02/ruby-python-2022-05-11/009.py


def factorial (x):
    if x <= 1:
        return 1
    return x * factorial (x-1)

def print_hallo_rec (x):
    if x <= 1:
        return
    print "Hallo Welt"
    print_hallo_rec (x-1)
    return

def print_hallo_it (x):
    i = 0
    while i < x:
        print "Hallo Welt"
        i = i + 1

print factorial (10)
print_hallo_rec (4)
print_hallo_it (2)