An open API service indexing awesome lists of open source software.

https://github.com/lfmramos/fibonacci

Implementation of the Fibonacci sequence in different programming languages
https://github.com/lfmramos/fibonacci

fibonacci-sequence java javascript python

Last synced: 9 months ago
JSON representation

Implementation of the Fibonacci sequence in different programming languages

Awesome Lists containing this project

README

          

# Recursive Fibonacci

This repository contains implementations of the Fibonacci sequence using recursion in Java, JavaScript and Python.

## Java Implementation

The Java implementation is provided in the file [Recursive_Fibonacci.java](Recursive_Fibonacci.java). It includes a class `Recursive_Fibonacci` with a method to compute Fibonacci numbers recursively.

### Usage

To run the Java implementation, compile and execute the `Recursive_Fibonacci` class:

```sh
javac
java Recursive_Fibonacci
```

This will print the first 10 Fibonacci numbers.

## JavaScript Implementation
The JavaScript implementation is provided in the file recursive_fibonacci.js. It includes a function fibonacci to compute Fibonacci numbers recursively.

### Usage
To run the JavaScript implementation, execute the recursive_fibonacci.js file in a Node.js environment:

```sh
node recursive_fibonacci.js
```

## Python Implementation
The Python implementation is provided in the file recursive_fibonacci.py. It includes a function fibonacci to compute Fibonacci numbers recursively.

### Usage
To run the Python implementation, execute the recursive_fibonacci.py file:

```sh
python recursive_fibonacci.py
```

## License
This project is licensed under the MIT License.