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


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

def print_hallo_it (x):
    i = 0
    while i < x:
        print "Hallo Welt"
        x = i + 1
        
def print_hallo_rec (x):
    if x <= 1:
        return
    print "Hallo Welt"
    print_hallo_rec (x-1)
    
print factorial (5)
print_hallo_it (2)
print_hallo_rec (3)