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
What is formal argument?
Differentiate call by value and call by reference?
What is a scope resolution operator in c?
Between macros and functions,which is better to use and why?
What is the size of structure in c?
Why we use conio h in c?
#include
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
Can a function argument have default value?
How do you determine the length of a string value that was stored in a variable?
Explain union. What are its advantages?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
Explain the use of bit fieild.
What is the concatenation operator?
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?