write a program to generate 1st n fibonacci prime number
Answer Posted / gayathri
void main()
{
int x1,x2,x3,i;
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 ? | 7 Yes | 15 No |
Post New Answer View All Answers
What does sizeof function do?
c program for searching a student details among 10 student details
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
how many errors in c explain deply
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
When should you not use a type cast?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures
How can you restore a redirected standard stream?
What is structure and union in c?
Explain how can you tell whether two strings are the same?
When do we get logical errors?
What is the use of f in c?
I have a varargs function which accepts a float parameter?
Here is a neat trick for checking whether two strings are equal
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol