Skip to content

Commit

Permalink
Merge pull request Harshsngh07#68 from Ramyaeaswaran/master
Browse files Browse the repository at this point in the history
Added a Dart language folder with a sample program
  • Loading branch information
Harshsngh07 authored Oct 20, 2019
2 parents 6ba0d41 + 3660e22 commit 16e4380
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Language/Dart/fibonnaci.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// To print first 10 terms of Fibonnaci sequence
main() {
int n=10, f1 = 0,f2 = 1;
for (int i = 1; i<=n;i++)
{
print(f2);
int next = f1 + f2;
f1 = f2;
f2 = next;
}
}

0 comments on commit 16e4380

Please sign in to comment.