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
How is null defined in c?
Can include files be nested? How many levels deep can include files be nested?
What is a stream?
Write a program to print factorial of given number without using recursion?
What are multidimensional arrays?
What is pragma in c?
What is the difference between printf and scanf in c?
What do you mean by dynamic memory allocation in c?
When should you use a type cast?
What does 4d mean in c?
What is const and volatile in c?
How is a macro different from a function?
Explain what does a function declared as pascal do differently?
What is the difference between volatile and const volatile?
What are the types of i/o functions?