Answers for "simple dart program"

-1

dart code examples

int fibonacci(int n) {
  if (n == 0 || n == 1) return n;
  return fibonacci(n - 1) + fibonacci(n - 2);
}

var result = fibonacci(20);
Posted by: Guest on October-01-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language