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
What is a constant and types of constants in c?
Suggesting that there can be 62 seconds in a minute?
What is a function in c?
What is cohesion in c?
write a c program for swapping two strings using pointer
Why functions are used in c?
What is the value of h?
Explain how do you determine a file’s attributes?
Is int a keyword in c?
What does malloc () calloc () realloc () free () do?
What is strcmp in c?
What is the process to generate random numbers in c programming language?
How can I read in an object file and jump to locations in it?
What does double pointer mean in c?
Is return a keyword in c?