How to write a program to generate fibonacci series....
Answers
Answered by
1
Answer:
C code for fibonacci Series
#include <stdio.h>
int main() {
int i, n, t1 = 0, t2 = 1, nextTerm;
printf("Enter the number of terms: ");
scanf("%d", &n);
printf("Fibonacci Series: ");
for (i = 1; i <= n; ++i) {
printf("%d, ", t1);
nextTerm = t1 + t2;
t1 = t2;
t2 = nextTerm;
}
return 0;
}
Mark me brainliest and don't forget to rate my answer with 5 start.
Answered by
0
Answer:
sun, brainly pr aise answers allowed nhi hai... thats i way i used an image to convey my message....
i was just saying that why are you not talking?
and you have to post more questions so that i can answer you and talk to you!
report this when u will see!
i hope u got my msg!
{post more questions so that i can talk to you, only 3 questions are not enough because i don't get space for writing)
Attachments:
Similar questions