8. Write in java to
print a sum of series.
s=1/11+3/31+5/51.......n/n1
Answers
Answered by
0
Answer:
public class series
{
public static void main(int n)
{
int k;int s=0;int p;
for(k=1;k<=n;k++)
{
p=k;
s=s+(p/(p*10+1));
}
System.out.print(s);
}
}
Similar questions