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
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
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?
What is the difference between the local variable and global variable in c?
Explain Basic concepts of C language?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
What is file in c language?
How do we declare variables in c?
Explain the difference between structs and unions in c?
What is c token?
What is an identifier?
how do you execute a c program in unix.
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
what are enumerations in C
Do you know the difference between malloc() and calloc() function?
Why does everyone say not to use gets?