interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

branch main Branches Tags History

omega-mv / research / om-bench / controls / fibo-main.om

19 lines · 215 bytes Raw Blame History
1fn main to int
2n = readall
3v = ulong 0
4for i ulong n
5c = get inb i
6if and ge c 48 le c 57
7v = add mul v 10 ulong sub c 48
8end
9end
10a = ulong 0
11b = ulong 1
12for i ulong v
13t = add a b
14a = b
15b = t
16end
17printu a
18ret 0
19end