Mode:
Duration:
1
2
3
4
5
6
proc fib(n: int): int =
if n < 2: return n
fib(n - 1) + fib(n - 2)
for i in 0..9:
echo fib(i)Coding works best on desktop or with an external keyboard.
proc fib(n: int): int =
if n < 2: return n
fib(n - 1) + fib(n - 2)
for i in 0..9:
echo fib(i)Coding works best on desktop or with an external keyboard.
Generates first 10 Fibonacci numbers.
proc fib(n: int): int =
if n < 2: return n
fib(n - 1) + fib(n - 2)
for i in 0..9:
echo fib(i)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.