write a program to generate 1st n fibonacci prime number
Answer Posted / abdifatah mohiadin adam
void main()
{
int x1,x2,x3,n,i;
x1=0;
x2=1;
printf("enter a value for n : ");
scanf("%d",&n);
printf("%d %d ",x1,x2);
for(i=3;i<=n;i++)
{
x3=x1+x2;
printf("%d ",x3);
x1=x2;
x2=x3;
}
}
| Is This Answer Correct ? | 9 Yes | 8 No |
Post New Answer View All Answers
What does c value mean?
What is bubble sort technique in c?
What is c value paradox explain?
What is c++ used for today?
Are bit fields portable?
Where are the auto variables stored?
What is stack in c?
Does c have function or method?
What is the size of enum in bytes?
What is putchar() function?
What is the difference between typedef and #define?
Is javascript based on c?
How do I determine whether a character is numeric, alphabetic, and so on?
Distinguish between actual and formal arguments.
What is omp_num_threads?