write a program to generate 1st n fibonacci prime number
Answer Posted / namrata
void main()
{
int x=1,i=0,n;
printf("Enter the value for n ");
scanf("%d",&n);
printf("\n%d ,",i);
for(;n>=1;--n)
{
x=x+i;
i=x-i;
printf("%d ,",x);
}
getch();
}
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Can you write the algorithm for Queue?
Explain enumerated types.
Explain bitwise shift operators?
Explain Function Pointer?
What is abstract data structure in c?
Is null valid for pointers to functions?
When should a type cast be used?
how many key words availabel in c a) 28 b) 31 c) 32
How is pointer initialized in c?
Why does the call char scanf work?
What is the difference between call by value and call by reference in c?
What is c programming structure?
What is function prototype in c language?
In which header file is the null macro defined?
How can I read/write structures from/to data files?