//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++;
}
}
write a program to print the series 1/12+1/22+.........+1/n2 ?
Please do.
Exactly what do you mean by 'C program in Java'
class Program { static void Main(string[] args) { int n1, n2, n3,i; n1 = 0; n2 = 1; for (i = 1; i <= 20; i++) { n3 = n1 + n2; if (n3 <= 200) { Console.WriteLine(n3); n1 = n2; n2 = n3; } } Console.ReadKey(); } }
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; .
Reference:cprogramming-bd.com/c_page2.aspx# sum the series
$vi multable.sh echo "enter the value of n:" read n i=1 for((i=1;i<=10;i++)) do echo " $n * $i = `expr $n \* $i`" done
How to write a program for secant method by mathematica
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).
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.
write a vb program to find the magic square
write a program to multily 3*3 matrix.