def faktorial(N): i=1 fakt=1 while i!=N+1: fakt = fakt*i i += 1 return fakt print(faktorial(5))
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter