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
Why isnt there a numbered, multi-level break statement to break out
Why do we need functions in c?
Why isnt any of this standardized in c?
Why do we use stdio h and conio h?
What is merge sort in c?
Write a C program on Centralized OLTP, Decentralized OLTP using locking mechanism, Semaphore using locking mechanism, Shared memory, message queues, channel of communication, sockets and a simple program on Saving bank application program using OLTP in IPC?
How do shell structures work?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
Why do we use null pointer?
How can you convert integers to binary or hexadecimal?
Difference between strcpy() and memcpy() function?
What is a rvalue?
What is pointer in c?
Write program to remove duplicate in an array?