Skip to content

Instantly share code, notes, and snippets.

@ThomasLocke
Created September 15, 2013 06:10
Show Gist options
  • Select an option

  • Save ThomasLocke/6568410 to your computer and use it in GitHub Desktop.

Select an option

Save ThomasLocke/6568410 to your computer and use it in GitHub Desktop.
Using the Ada Web Server (AWS), part 2 - snippet 7
for i in Fibs'Range loop
case i is
when 0 => Fibs (i) := 0;
when 1 => Fibs (i) := 1;
when others => Fibs (i) := Fibs (i - 1) + Fibs (i - 2);
end case;
Append (Position, i);
Append (Fibonacci, Fibs (i));
end loop;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment