write a program to generate 1st n fibonacci prime number
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / namrata
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 ? | 2 Yes | 2 No |
When should you use a type cast?
control 50 devices which has 2 states on and off.using bitwise operator.plz answer it its urgent
How do I use void main?
Write a program for deleting duplicate elements in an array
WRITE A PROGRAM IN C TO MULTIPLY TWO 2-D ARRAYS
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
Why does everyone say not to use gets?
write a program to gat the digt sum of a number (et. 15= >1+5=6)
program for reversing a selected line word by word when multiple lines are given without using strrev
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
List some of the dynamic data structures in C?
How can you find out how much memory is available?