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
Explain what is output redirection?
Is boolean a datatype in c?
What is #include stdlib h?
How can I do graphics in c?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
Is there any data type in c with variable size?
Explain what is the difference between a free-standing and a hosted environment?
Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.
What are logical errors and how does it differ from syntax errors?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
Which is better pointer or array?
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
What is a c token and types of c tokens?
what is use of malloc and calloc?
What do the functions atoi(), itoa() and gcvt() do?