Computer Science, asked by mandhatasinghdeoria, 8 months ago

Write a program to create a menu driven program

1. To print the fibbonacii series upto n terms

i.e 0,1,1,2,3,5,…..n terms​

Answers

Answered by AnindaBasu
0

Answer:

There is only one option so it will not be a menu driven program

#include<stdio.h>

#include<conio.h>

void main()

{

int f0=0,f1=1,f2,i=1,n;

clrscr();

printf("\n Enter the range :- ");

printf("\n The range of Fibonacci series :- ");

printf("\n %d%d",f0,f1);

while(i<=n)

{

f2=f0+f1;

printf("\n %d",f2);

f0=f1;

f1=f2;

i++;

}

getch();

}

Similar questions