write a program to generate 1st n fibonacci prime number
Answer Posted / amit thakur
void main()
{
int x=1,i=0,n;
printf("Enter the value for n ");
scanf("%d",&n);
printf("\n%d ,",i);
for(;n>=1;--n)
{
x=x+i;
i=x-i;
printf("%d ,",x);
}
getch();
}
| Is This Answer Correct ? | 6 Yes | 4 No |
Post New Answer View All Answers
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
Where define directive used?
Can you add pointers together? Why would you?
Why we use break in c?
Explain how can I manipulate strings of multibyte characters?
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
What is the 'named constructor idiom'?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Using which language Test cases are added in .ptu file of RTRT unit testing???
Explain what’s a signal? Explain what do I use signals for?
How variables are declared in c?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
Is it better to use malloc() or calloc()?
How can a number be converted to a string?
Why do we use c for the speed of light?