
import java.io.*; public class sereies { public static void main(String args[])throws IOException { BufferedReader keyin=new BufferedReader(new InputStreamReader(System.in)); int n;
double sum=0, m=1,s=1;
System.out.println("enter the value of n");
String j =keyin.readLine();
n=Integer.parseInt(j);
for(int k=1;k<=n;k++)
{
for(int x=1;x<=k;x++)
{
s=s+k;
m=m*x;
sum=s/m;
}
}
System.out.println("Sum of series is"+sum);
}
}
this is my program i need to print the series (1+2/12)+(1+2+n/12*n)
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.