write a program to generate 1st n fibonacci prime number
Answer Posted / rose
void main()
{
int x1,x2,x3,i,n;
x1=-1;
x2=1;
printf("enter the value for n :");
scanf("%d",&n);
print
for(i=0;i<n;i++)
{
x3=x1+x2;
if((x3 mod 2)!=0)
{
printf("%d ",x3)
}
x1=x2;
x2=x3;
}
}
| Is This Answer Correct ? | 6 Yes | 12 No |
Post New Answer View All Answers
Define recursion in c.
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
When is a “switch” statement preferable over an “if” statement?
What are the advantages of the functions?
write a program in c language to print your bio-data on the screen by using functions.
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
How can type-insensitive macros be created?
What is difference between structure and union?
Is struct oop?
How can I generate floating-point random numbers?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
Explain can static variables be declared in a header file?
Explain the advantages of using macro in c language?
Write a code of a general series where the next element is the sum of last k terms.
Is null a keyword in c?