write a program to generate 1st n fibonacci prime number
Answer Posted / amit thakur
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 ? | 6 Yes | 4 No |
Post New Answer View All Answers
What are the 32 keywords in c?
What is c language and why we use it?
Is null always defined as 0(zero)?
What is a #include preprocessor?
What does 3 mean in texting?
What is FIFO?
Is null a keyword in c?
Explain what is the difference between text files and binary files?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
How can I split up a string into whitespace-separated fields?
How will you delete a node in DLL?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Why is a semicolon (;) put at the end of every program statement?
What does sizeof function do?
why return type of main is not necessary in linux