by @kodeazy
flutter what is fibonacci series and example program to print upto 15 numbers in dart without using recursion?
 In fibonacci series next number is sum of previous two numbers.

F(n)=F(n1)+F(n2)
.  Initial two numbers are
0
,1
. Example of fibonacci series0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55 etc
. 
Below is example program of fibonacci series without using recursion in dart
void main() { int previousNumber1 = 0, previousNumber2 = 1, nextNumber, total = 15; print(previousNumber1); print(previousNumber2); for (int num = 2; num < total; ++num) { nextNumber = previiousNumber1 + previousNumber2; print(nextNumber); previousNumber1 = previousNumber2; previousNumber2 = nextNumber; } }
Output:
0 1 1 2 3 5 8 13 21 34 55 89 144 233 377