0.1+0.11+0.111+.......n terms
Answers
Answered by
10
nth term of series is sum of GP as shown in attachment. we can find sum of series in mentioned in pic.
Attachments:

rajivnld2002p7qvsa:
is my sol. correct
Answered by
2
Answer:
Step-by-step explanation:
import java.util.*;
class Series
{
public static void main(String args[])
{
Scanner sc = new Scanner (System.in);
int n, i, a = 10; double term = 0.0, sum = 0.0;
System.out.println("Enter the number of terms: ");
n = sc.nextInt();
for (i = 1; i <= n; i++)
{
term = (double) 3/a;
sum = sum + term;
a *= 10;
}
System.out.println("Sum of the series is: " + sum);
}
}
HOPE THIS WILL HELP YOU...
Similar questions