#include<iostream>
int main()
{
int x=0, y=1;
std::cout<<x<<" ";
std::cout<<y<<" ";
while( y<1000000 )
{
std::cout<<(y+=x)<<" ";
x=y-x;
}
std::cout<<std::endl;
return(0);
}
write a program to print the series 1/12+1/22+.........+1/n2 ?
You mean you have written a program, but you don't understand it? Well, how could I explain it without seeing it?
#include<stdio.h> #include<conio.h> void main() { }
c program was introduced in the year 1972 by Dennis RitchieNo, it was the C language, not the C program.
how to create a c program for left factoring.
find the program in c-pgms.blogspot.com
That would be the "fibonacci" series. It is the series of numbers:1 1 2 3 5 8 13 21...Where each number is the sum of the previous two.
Exactly what do you mean by 'C program in Java'
Please do.
write a program to print the series 1/12+1/22+.........+1/n2 ?
You mean you have written a program, but you don't understand it? Well, how could I explain it without seeing it?
#include<stdio.h> #include<conio.h> void main() { }
Reference:cprogramming-bd.com/c_page2.aspx# sum the series
i dn't know. haha
Yes, this can be done. For example for Fibonacci series. You will find plenty of examples if you google for the types of series you need to be generated.
the features of a C program
c program was introduced in the year 1972 by Dennis RitchieNo, it was the C language, not the C program.