Skip to content

Instantly share code, notes, and snippets.

@helderlj
Last active May 7, 2024 23:33
Show Gist options
  • Save helderlj/dfc70f39ed594c51d2a180a39760301b to your computer and use it in GitHub Desktop.
Save helderlj/dfc70f39ed594c51d2a180a39760301b to your computer and use it in GitHub Desktop.
Calculo de Fibonacci da Flutterando
void main() {
final int iterations = 10;
int ant1 = 0;
int ant2 = 1;
final fibo = List.generate(iterations, (i){
var temp = ant1;
ant1 = ant2;
ant2 = temp + ant2;
return ant1;
});
print(fibo);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment