Mode:
Duration:
1
2
3
4
5
proc factorial(n: int): int =
if n <= 1: return 1
n * factorial(n - 1)
echo factorial(5)Coding works best on desktop or with an external keyboard.
proc factorial(n: int): int =
if n <= 1: return 1
n * factorial(n - 1)
echo factorial(5)Coding works best on desktop or with an external keyboard.
Calculates factorial recursively.
proc factorial(n: int): int =
if n <= 1: return 1
n * factorial(n - 1)
echo factorial(5)Nim is a statically typed, compiled systems programming language with Python-like syntax. It emphasizes performance, expressiveness, and metaprogramming, making it suitable for system tools, web development, and scientific computing.
Origin & Creator
Created in 2008 by Andreas Rumpf.
Industrial Note
Nim is used in high-performance tools, embedded systems, game development, and niche web frameworks where low-level control and speed are essential.