answersLogoWhite

0

//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++;

}

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Write a C program to print the following series 112 122 . 1n2?

write a program to print the series 1/12+1/22+.........+1/n2 ?


Write a c program to solve cos series?

Please do.


Write a c program Fibonacci series using for loop in java?

Exactly what do you mean by 'C program in Java'


Write a program that generates the Fibonacci series up to 200?

class Program { static void Main(string[] args) { int n1, n2, n3,i; n1 = 0; n2 = 1; for (i = 1; i &lt;= 20; i++) { n3 = n1 + n2; if (n3 &lt;= 200) { Console.WriteLine(n3); n1 = n2; n2 = n3; } } Console.ReadKey(); } }


Write a program to find the sum of sine series?

Writing a program for a sum of sine series requires a rather long formula. That formula is: #include #include #include main() { int i,n,x; .


How do you write a C program to Calculate the Series. The Value of x and n must take from input terminal.?

Reference:cprogramming-bd.com/c_page2.aspx# sum the series


Write a Unix program that generates a multiplication table?

$vi multable.sh echo "enter the value of n:" read n i=1 for((i=1;i&lt;=10;i++)) do echo " $n * $i = `expr $n \* $i`" done


How to write program for secant method in mathematica?

How to write a program for secant method by mathematica


Write a java program to print the result in the series?

If you have the series stored in an array, you loop through the array and print each array element in turn. Another possibility is to print out the numbers in the series as you generate them. In that case, you may not need to store anything (depending on the series, of course).


Can the word series be used with an apostrophe?

I suppose one could write the series' number but in practice it is much more common to to treat series an adjective in such circumstances and write the series number.Alternatively, write the number of the series.


How do you write Square program using vb?

write a vb program to find the magic square


Write a program to multiply 33 matrix.?

write a program to multily 3*3 matrix.