write a program to generate 1st n fibonacci prime number
Answer Posted / abdifatah mohiadin adam
void main()
{
int x1,x2,x3,n,i;
x1=0;
x2=1;
printf("enter a value for n : ");
scanf("%d",&n);
printf("%d %d ",x1,x2);
for(i=3;i<=n;i++)
{
x3=x1+x2;
printf("%d ",x3);
x1=x2;
x2=x3;
}
}
| Is This Answer Correct ? | 9 Yes | 8 No |
Post New Answer View All Answers
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
What is an example of structure?
What is a protocol in c?
What is c language in simple words?
Can I initialize unions?
What is a pointer on a pointer in c programming language?
How is actual parameter different from the formal parameter?
What is the difference between c and python?
Is a pointer a kind of array?
What is the difference between fread and fwrite function?
Explain the red-black trees?
Explain the difference between structs and unions in c?
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
Which is the best website to learn c programming?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software