write a program to generate 1st n fibonacci prime number
Answer Posted / arun
void main()
{
int x1,x2,x3,n,i;
x1=0;
x2=1;
printf("enter a value for n : ");
scanf("%d",&n);
printf("%d %d ",x1,x2);
for(i=3;i<=n;i++)
{
x3=x1+x2;
printf("%d ",x3);
x1=x2;
x2=x3;
}
}
| Is This Answer Correct ? | 4 Yes | 10 No |
Post New Answer View All Answers
What are called c variables?
What is c basic?
Write a program that accept anumber in words
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
What is a wrapper function in c?
Why is #define used?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
What is difference between structure and union in c programming?
What are the application of c?
What are actual arguments?
How can I generate floating-point random numbers?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
What does c value mean?
In C language what is a 'dangling pointer'?
What is masking?