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
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
What is class and object in c?
What is boolean in c?
what is the difference between 123 and 0123 in c?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
What is the use of a conditional inclusion statement in C?
HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????
Is this program statement valid? INT = 10.50;
Explain what is a 'locale'?
How can I read a binary data file properly?
What is the use of sizeof () in c?
What is c system32 taskhostw exe?
Explain what are multibyte characters?
What is sizeof int in c?
What does void main () mean?