1/2 + 1/3 +1/4 ......... 1/20
please do this void series it is very important .
Answers
Answered by
3
* CODE FOR SUM OF SERIES *
class Sum_series
{
public static void main(String args[])
{
double S=0.0;
for(double i=2.0;i<=20.0;i++)
{
S=S+1.0/i;
}
System.out.print("Sum of series is "+S);
}
}
I hope you need the sum of the series .
Similar questions