write a program to generate 1st n fibonacci prime number
Answer Posted / gayathri
void main()
{
int x1,x2,x3,i;
x1=-1;
x2=1;
printf("enter the value for n :");
scanf("%d",&n);
print
for(i=0;i<n;i++)
{
x3=x1+x2;
if((x3 mod 2)!=0)
{
printf("%d ",x3)
}
x1=x2;
x2=x3;
}
}
| Is This Answer Correct ? | 7 Yes | 15 No |
Post New Answer View All Answers
#include
What is advantage of pointer in c?
What is the use of function overloading in C?
What is difference between && and & in c?
Explain the term printf() and scanf() used in c language?
Write a program with dynamically allocation of variable.
What is the use of sizeof?
What is 'bus error'?
How do you determine a file’s attributes?
Explain 'far' and 'near' pointers in c.
What are the ways to a null pointer can use in c programming language?
What is local and global variable in c?
What is meant by operator precedence?
What is the general form of #line preprocessor?
Can static variables be declared in a header file?