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
write a program to copy the string using switch case?
Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?
What is pointers in c?
What is sizeof return in c?
What is sizeof c?
How can I read a binary data file properly?
What is the difference between pure virtual function and virtual function?
What do you know about the use of bit field?
How can I find the modification date of a file?
What is %g in c?
What are the different types of constants?
how logic is used
Why can't I perform arithmetic on a void* pointer?
What is the meaning of 2d in c?
When should the register modifier be used? Does it really help?