English, asked by vbbb8, 1 year ago

Write a program to display the series upto 10 terms:
12,25,38.....................................

Answers

Answered by Anonymous
1

import java.util.*;

public class Series

{

public static void main(String args[])

{

Scanner in=new Scanner(System.in);

int n=13,m;

//using for loop

for(m=1;m<=10;m++)

{

n=n*m-1;

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

}

}

}

Similar questions