FIBONACI
//DECLARACION DE LIBRERIAS
#include<iostream.h>
#include<conio.h>
#include<dos.h>
//Declaracion de prototipos
void fun1(int n,int b,int c,int f);
void main()
{
clrscr();
int a;
cout<<” > >>>*INGRESE LA CANTIDAD DE NUMEROS …. \n”;
cout<<” >>>>* DE LA SERIE FIBONACI QUE DESEE …. \t”;
cin>>a;
cout<<”\n\n\n”;
fun1(a,1,1,0);
getch();
}
//LLAMAR UNA FUNCION DENTRO DENTRO DE OTRA FUNCION
void fun1(int n,int b,int c,int f)
{
cout<<f<<”\n\n”;
if(n>1)
{
fun1((n-1),c,f,(f+c));
}
}