Skip to content

Instantly share code, notes, and snippets.

@Aetet
Last active December 12, 2018 20:21
Show Gist options
  • Save Aetet/8aae9ca9a7b4521bf87aeb499b386897 to your computer and use it in GitHub Desktop.
Save Aetet/8aae9ca9a7b4521bf87aeb499b386897 to your computer and use it in GitHub Desktop.
void main() {
int i, b = 1, n = 11;
final mas = new List(n);
mas[0] = 1;
for (i = 1; i < n; i++) {
mas[i] = b;
b = mas[i-1] + b;
}
for (i = 0; i < n; i++) {
print(mas[i]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment