write a program to generate 1st n fibonacci prime number
Answer Posted / rose
void main()
{
int x1,x2,x3,i,n;
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 ? | 6 Yes | 12 No |
Post New Answer View All Answers
What is a substring in c?
Why is c platform dependent?
How reliable are floating-point comparisons?
How to get string length of given string in c?
What are the two types of structure?
Which node is more powerful and can handle local information processing or graphics processing?
what is ur strangth & weekness
Whats s or c mean?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
Why is c used in embedded systems?
How can I convert a number to a string?
What does struct node * mean?
Tell us bitwise shift operators?
Define and explain about ! Operator?
What are structural members?