Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

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);
Source by dart.dev #
 
PREVIOUS NEXT
Tagged: #dart #code #examples
ADD COMMENT
Topic
Name
6+2 =