Loading editor...

fn main() -> (f: I32):
  n := 10
  mut a: I32 = 0
  mut b: I32 = 1
  mut i: I32 = 0
  loop:
    temp: I32 = a
    if >=(i,n):
      break
    a = b
    b = (temp + b)
    i = (i + 1)
  draw(a)
  return a
Run

Flogram IDE

We're excited to have you here. Please note that our IDE is currently in its early stages of development. Write code in the left, and click 'Run' in the top left corner for compilation.As we work diligently to enhance your experience, you may encounter some sections that are not fully operational yet.

Ok, got it!