answersLogoWhite

0

//fibriconance sequence

#include<stdio.h>

#include<conio.h>

int n;

void recfibo();

void main()

{

printf("enter the value of n:=> ");

scanf("%d",&n);

recfibo();

getch();

clrscr();

}

void recfibo()

{

static int i=1,s1=1,s2=0;;

printf("%d ",s1);

s1=s1+s2;

s2=s1-s2;

i++;

if (i<=n)

{

recfibo();

}

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you write a program that removes all occurrences of a given X in a given sequence of numbers?

You do nothing! A sequence of numbers will contain no X and so nothing needs doing!


How do you write a sequence to a story?

A sequence is just an ordered set of events. You write it by telling what happened in order.


How do you write a sequence?

write something, leave a space, write something else.


How do you do sequence?

write something, leave a space, write something else.


What is algorithm write properties of algorithm?

An ALGORITHM is a sequence of steps that depicts the program logic independent of the language in which it is to be implemented. An algorithm should be designed with space and time complexities in mind.


Can you write a program using only sequence structures?

Sure: int main (void) { puts ("Hello, world!"); return 0; }


Could you write a assembly language program in tasm To check whether a given number present in a sequence of given memory location containing the string to be checked in 8086?

8086 assembly language program to check wether given number is perfect or not


How to write program for secant method in mathematica?

How to write a program for secant method by mathematica


Is it possible to write a C plus plus or java program to draw an activity flow diagram given the sequence as a text file input and store the diagram in an output file?

Yes, this is possible.


How do you write Square program using vb?

write a vb program to find the magic square


Write a program to multiply 33 matrix.?

write a program to multily 3*3 matrix.


Write a program in Lex to eliminate white space and collect numbers as a token?

write a lex program to delete space from the program