Best Answer

Here is a good answer for recursion Fibonacci series.

#include <stdio.h>

#include <conio.h>

long Fibonacci(long n);

int main()


long r, n,i;

printf("Enter the value of n: ");




printf(" Fibonacci(%ld)= %ld\n", i,Fibonacci(i));



return 0;


long Fibonacci(long n)


if(n==0 n==1)

return n;



return (Fibonacci(n-1)+Fibonacci(n-2));



for n=5;

Output: Fibonacci(0)=0






User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Fibbomacci series using recursion shell programming?
Write your answer...
Still have questions?
magnify glass
Related questions

Whynot you use any onther programming except shell programming?

Shell programming can get you only so far; after that you need to use another programming language (possibly even another scripting language) to get the job done. Shell programming is designed to work with the system interface and to help automate tasks; it isn't good for everything.

What is the difference between the Linux shell and C?

C is a programming language. A shell is an interface.

What are the types of shells in shell programming?

The Bourne shell (sh) ,The C shell (csh) ,The Korn shell (ksh) ,The Z-Shell (zsh) ,The POSIX shell,The Bourne Again SHell (Bash)null

What is the importance of Linux shell?

Linux shell is a programming language. its fully different from others progrmming language. the script which is used in Linux quite tough to remember if we comparison to other programming laguages.

Sum of n numbers in shell programming?

2 4 6

Difference between c and shell programming execution?

Can you please explain your question?

Why is Unix useful in shell programming?

The shell is both a command language and a programming language that provides an interface to the UNIX operating system (Bourne, 1978). The shell is the part of the operating system that the user interacts with, and is arguably the most important part of the operating system. Files can be created, renamed, moved and read from the shell. Computer hardware can be installed, used and removed through the shells. Program applications and scripting can be written, compiled, and ran through the shell.

Shell sript programming Has a bit of a bad press?

Maybe, but don't worry to much about that.

How do you modify skin of SPD shell v3.88 for s60 v5?

To modify the skin of the SPD shell v3.88 for s60 v5 you need to have some programming skills.

What is a mini shell program used for in Unix?

The mini shell program is used in Unix as a programming software. It is a redirected and streamlined approach at creating variables, commands, and tokens.

How do you display qBasic programming if their is no MS-DOS prompt?

If you are using windows, MSDOS shell is integrated by default..

What is bash shell scripting?

Bash shell scripting is the process of writing a series of commands in a text file that are recognized by the bash shell interpreter.