write a program to generate 1st n fibonacci prime number

Answer Posted / amit thakur

void main()
{
int x=1,i=0,n;
printf("Enter the value for n ");
scanf("%d",&n);
printf("\n%d ,",i);
for(;n>=1;--n)
{
x=x+i;
i=x-i;
printf("%d ,",x);
}
getch();
}

Is This Answer Correct ?    6 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this

2944


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

1603


What is the difference between the local variable and global variable in c?

537


Explain Basic concepts of C language?

652


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

1934






What is file in c language?

585


How do we declare variables in c?

579


Explain the difference between structs and unions in c?

582


What is c token?

618


What is an identifier?

632


how do you execute a c program in unix.

641


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

658


what are enumerations in C

729


Do you know the difference between malloc() and calloc() function?

618


Why does everyone say not to use gets?

612