Skip to main content

Command Palette

Search for a command to run...

Fibonacci Number Using Recursion

The Code is in both java and C++

Updated
1 min read
Fibonacci Number Using Recursion
G

Trainee Engineer at UST Production Engineering

Fibonacci Number of Nth Number

In Below code we have used recursion to return Fibonacci number and Fibonacci series.

Example 1:

Paste Input in :"Stdin Input" to execute the code.

Input :-

10

Output :-

55

Code in C++

Code in Java

Example 2:
Input :-

15

Output :-

610