01-faktorial

PHOTO EMBED

Sun May 16 2021 13:40:50 GMT+0000 (UTC)

Saved by @anvarbek

def faktorial(N):
    i=1
    fakt=1
    while i!=N+1:
        fakt = fakt*i        
        i += 1
    return fakt

print(faktorial(5))
content_copyCOPY