write a program to generate 1st n fibonacci prime number
Answer Posted / yagneswara babu
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 ? | 35 Yes | 40 No |
Post New Answer View All Answers
How can I change their mode to binary?
string reverse using recursion
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
List some of the static data structures in C?
What is main function in c?
What are formal parameters?
what does static variable mean?
What is 1f in c?
What is the explanation for cyclic nature of data types in c?
What is 2 d array in c?
What is || operator and how does it function in a program?
How can I convert a number to a string?
Where we use clrscr in c?
How to define structures? ·
What is wrong in this statement? scanf(“%d”,whatnumber);