Computer Science, asked by bluebell200408, 1 day ago

display fibonacci series upto 10 using recursion

Answers

Answered by llShinell
1

Answer:

▪︎ Fibonacci Series using recursion in C

#include<stdio.h>

void printFibonacci(int n){

static int n1=0,n2=1,n3;

if(n>0){

n3 = n1 + n2;

n1 = n2;

n2 = n3;

printf("%d ",n3);

please follow ♡

Similar questions