#include<stdio.h>
main()
{
int n,first.sec,count,next;
scanf("%d",&n);
first=0,sec=1;
printf("d",first,sec);
for(count=3;count<=n;count++)
{
next=first+sec;
printf("%d",next);
first=sec;
sec=next;
}
}
To the original answerer, I recommend you do not #include <conio.h>, since it reduces portability and provides absolutely no functionality in this case.
Yes it is.
Fibbonaci who else
#include <stdio.h> int main (void) { puts ("a a b a b c"); return 0; }
i dn't know. haha
Depends on the sequence. There may be a formula for the Nth term in which case it is easy. Or the value may depend on some combination of previous terms (as in the Fibbonaci series).
You need to be more specific in what you are asking. For example, the following meets your requirements: int main() { printf("a a b a b c\n"); return 0; }
#include #include void main() { clrscr() int a=0,b=1,c,i,n; coutn cout
//to generate Fibonacci series upto a range of 200....(in C).... #include<stdio.h> main() { int a,b,c,i; a=0; b=1; printf("\n FIBONACCI SERIES .....\t"); i=1; while(i<=(200-2)) { c=a+b; printf("\t%d",c); a=b; b=c; i++; } }
int f1=1, f2=1, c=2; do { t=f1+f2; printf("%d\t",t); f1=f2; f2=t; c=c+1; }while(c
What is the assembly program to generate a geometric series and compute its sum The inputs are the base root and the length of the series The outputs are the series elements and their sum?
C means "classic" in nokia c series
Auto Fill is the feature that can generate a series of value into adjacent cells based on the value of other cells.