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
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
What would be an example of a structure analogous to structure c?
How can I implement sets or arrays of bits?
What is an lvalue in c?
Explain the concept and use of type void.
How can I use a preprocessorif expression to ?
What is meant by errors and debugging?
Explain about C function prototype?
Explain how can I convert a number to a string?
Explain how can I right-justify a string?
What is function and its example?
When should volatile modifier be used?
Add Two Numbers Without Using the Addition Operator
Is array name a pointer?
What should malloc() do? Return a null pointer or a pointer to 0 bytes?