Chemistry, asked by jkkjkj, 1 year ago

Write a program to find the following series upto 10 terms"
12,56,100.............................

Answers

Answered by Anonymous
2

import java.util.*;

public class Series

{

public static void main(String args[])

{

Scanner in = new Scanner(System.in);

int m=11,n;

for(n=1;n<=34;n++)

{

m=(m*n)+1;

System.out.println("The series is"+m);

}

}

}

Answered by Anonymous
3

import java.util.*;

public class Series

{

public static void main(String args[])

{

int x=11,z;

//using for loop

for(z=1;z<=34;z++)

{

x=(x*z)+1;

System.out.println("Display the series"+x);

}

}

}

Similar questions