Making a fibonacci triangle in C

As we know what is fibonacci series now from our previous article of fibonacci series, and now we will make a fibonacci triangle by C programming. Here the user will give the input that how many number he want to print in a fibonacci triangle. Then we will print the output as a triangle of fibonacci series.

Suppose, a user gives the input as an integer 7. Then we will print the following output.

Enter the maximum limit of series : 7
1
1       1
1       1       2
1       1       2       3
1       1       2       3       5
1       1       2       3       5       8
1       1       2       3       5       8       13

Now, let’s see the program bellow.

Fibonacci triangle using C

// program here

Output of this fibonacci triangle program:

fibonacci triangle in c programming

Previous pageFibonacci  series

Next pageNumber triangle