Sha256: 083387ba3d5b7002d62219452d792aa07a2f025596c348e10f4ba444f3bee29d
Contents?: true
Size: 201 Bytes
Versions: 3
Compression:
Stored size: 201 Bytes
Contents
fn fib(n: Int): # write Fibonacci series up to n """Print a Fibonacci series up to n.""" var a = 0 var b = 1 while a < n: print(a) a, b = b, a+b fn main(): fib(10)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rouge-4.5.1 | lib/rouge/demos/mojo |
rouge-4.5.0 | lib/rouge/demos/mojo |
rouge-4.4.0 | lib/rouge/demos/mojo |